aboutsummaryrefslogtreecommitdiffstats
path: root/arena.c
diff options
context:
space:
mode:
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;