diff options
author | Werner Koch <[email protected]> | 2010-03-08 18:19:21 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-03-08 18:19:21 +0000 |
commit | 6216d33e8cc1c2d01533b3e9b97dc7009b4f3553 (patch) | |
tree | 062bf701637025088b83a9e8684aa7a1eae68fb5 /g10/mainproc.c | |
parent | Use macros for iobuf ioctls. (diff) | |
download | gnupg-6216d33e8cc1c2d01533b3e9b97dc7009b4f3553.tar.gz gnupg-6216d33e8cc1c2d01533b3e9b97dc7009b4f3553.zip |
Removed almost al dup calls.
Diffstat (limited to 'g10/mainproc.c')
-rw-r--r-- | g10/mainproc.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c index 8707cd8c8..5d568474b 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -78,7 +78,7 @@ struct mainproc_context /* A list of filenames with the data files or NULL. This is only used if DATA_FD is -1. */ strlist_t data_names; - /* Flag to indicated that either one of the next previous fieldss + /* Flag to indicated that either one of the next previous fields is used. This is only needed for better readability. */ int used; } signed_data; @@ -1221,11 +1221,16 @@ proc_signature_packets( void *anchor, IOBUF a, return rc; } + int proc_signature_packets_by_fd (void *anchor, IOBUF a, int signed_data_fd ) { int rc; - CTX c = xcalloc (1, sizeof *c); + CTX c; + + c = xtrycalloc (1, sizeof *c); + if (!c) + return gpg_error_from_syserror (); c->anchor = anchor; c->sigs_only = 1; |