From: mdw Date: Wed, 29 Jun 2005 10:10:41 +0000 (+0000) Subject: Ooops. key_discard doesn't return a value. Make the declaration reflect X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/commitdiff_plain/01e60364b222f33f2537d50131831fed6438dfad Ooops. key_discard doesn't return a value. Make the declaration reflect this! --- diff --git a/key-io.c b/key-io.c index 5f793d7..de66a83 100644 --- 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 --- 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@ --- * *