Remove unused variable first_entry from function find_key
authorByrial Jensen <byrial@vip.cybercity.dk>
Mon, 16 Apr 2012 11:07:01 +0000 (13:07 +0200)
committerByrial Jensen <byrial@vip.cybercity.dk>
Mon, 16 Apr 2012 11:20:59 +0000 (13:20 +0200)
book.c

diff --git a/book.c b/book.c
index 1eb0d68..ebf242f 100644 (file)
--- a/book.c
+++ b/book.c
@@ -420,7 +420,7 @@ int
 find_key (FILE *f, uint64 key, entry_t *entry)
 {
     int first, last, middle;
-    entry_t first_entry=entry_none, last_entry,middle_entry;
+    entry_t last_entry,middle_entry;
     first=-1;
     if(fseek(f,-16,SEEK_END)){
         *entry=entry_none;
@@ -442,7 +442,6 @@ find_key (FILE *f, uint64 key, entry_t *entry)
             last_entry=middle_entry;
         }else{
             first=middle;
-            first_entry=middle_entry;
         }
     }
 }