aboutsummaryrefslogtreecommitdiffstats
path: root/arena.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2001-10-15 23:14:57 +0000
committerH. Peter Anvin <hpa@zytor.com>2001-10-15 23:14:57 +0000
commite1762ed1c23b53b26e6841f4bba1a5688e98a2dd (patch)
treeb07f9def493f6b25c9e1cce62488dd9560b19e17 /arena.c
parent8b171ab4486a07cc899f3e54660aeb613a3e4d23 (diff)
downloadlpsm-e1762ed1c23b53b26e6841f4bba1a5688e98a2dd.tar.gz
lpsm-e1762ed1c23b53b26e6841f4bba1a5688e98a2dd.tar.xz
lpsm-e1762ed1c23b53b26e6841f4bba1a5688e98a2dd.zip
Clean up the interfaces and remove some obviously incorrect code.to-tytso-20011015b
Diffstat (limited to 'arena.c')
-rw-r--r--arena.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arena.c b/arena.c
index 10df925..3fdbd7a 100644
--- a/arena.c
+++ b/arena.c
@@ -228,8 +228,6 @@ static int objstore_log_writeback(void)
char *data;
position += sizeof(record);
- if ( !data )
- return -1; /* Badness... */
lockmain.l_type = F_WRLCK;
lockmain.l_whence = SEEK_SET;
@@ -303,7 +301,7 @@ static int objstore_recover_log(void)
* playback (crash recovery) if the log file exists
* and is nonempty.
*/
-void *objstore_init(char *main_file, char *log_file, size_t *arena_len)
+void *objstore_init(const char *main_file, const char *log_file, size_t *arena_len)
{
struct ObjStore *os;
void *arena_ptr;