Remove unused variable first_entry from function find_key
[xboard.git] / 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;
 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;
     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;
             last_entry=middle_entry;
         }else{
             first=middle;
-            first_entry=middle_entry;
         }
     }
 }
         }
     }
 }