diff options
author | Werner Koch <wk@gnupg.org> | 2004-06-14 10:32:07 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2004-06-14 10:32:07 +0200 |
commit | feb40e2c6ec1eb008960fbcbbb683c96110bf8aa (patch) | |
tree | 698dbaefd7987af73d70e87820d2ca1b286bbd9a /common/util.h | |
parent | post release version bump (diff) | |
download | gnupg2-feb40e2c6ec1eb008960fbcbbb683c96110bf8aa.tar.xz gnupg2-feb40e2c6ec1eb008960fbcbbb683c96110bf8aa.zip |
* xreadline.c: New. Based on the iobuf_read_line function.
* no-libgcrypt.c (gcry_realloc, gcry_xmalloc, gcry_xcalloc): New.
* gpgconf-comp.c (retrieve_options_from_program)
(retrieve_options_from_file, change_options_file)
(change_options_program, gc_component_change_options): Replaced
getline by read_line and test for allocation failure.
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h index 461e744ad..b9ffe6562 100644 --- a/common/util.h +++ b/common/util.h @@ -99,6 +99,11 @@ int answer_is_yes (const char *s); int answer_is_yes_no_default (const char *s, int def_answer); int answer_is_yes_no_quit (const char *s); +/*-- xreadline.c --*/ +ssize_t read_line (FILE *fp, + char **addr_of_buffer, size_t *length_of_buffer, + size_t *max_length); + /*-- b64enc.c --*/ struct b64state |