Ooops. key_discard doesn't return a value. Make the declaration reflect
authormdw <mdw>
Wed, 29 Jun 2005 10:10:41 +0000 (10:10 +0000)
committermdw <mdw>
Wed, 29 Jun 2005 10:10:41 +0000 (10:10 +0000)
this!

key-io.c
key.h

index 5f793d7..de66a83 100644 (file)
--- a/key-io.c
+++ b/key-io.c
@@ -457,7 +457,7 @@ int key_open(key_file *f, const char *file, unsigned how,
  * Use:                Frees all the key data, without writing changes.
  */
 
-int key_discard(key_file *f)
+void key_discard(key_file *f)
 {
   hash_base *b;
   hash_iter i;
diff --git a/key.h b/key.h
index aad448b..ff3f81d 100644 (file)
--- a/key.h
+++ b/key.h
@@ -240,7 +240,7 @@ extern int key_open(key_file */*f*/, const char */*file*/, unsigned /*how*/,
  * Use:                Frees all the key data, without writing changes.
  */
 
-extern int key_discard(key_file */*f*/);
+extern void key_discard(key_file */*f*/);
 
 /* --- @key_close@ --- *
  *