mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
common: Slight redefinition of nvc_get_boolean.
* common/name-value.c (nvc_get_boolean): Rewrite. -- The function may now return a positive or negative number instead of just 1 for true. All callers were already prepared for this. GnuPG-bug-id: 6212
This commit is contained in:
parent
eae28f1bd4
commit
f35e7dbf9e
3 changed files with 13 additions and 7 deletions
|
@ -75,7 +75,8 @@ nve_t nve_next_value (nve_t entry, const char *name);
|
|||
/* Return the string for the first entry in NVC with NAME or NULL. */
|
||||
const char *nvc_get_string (nvc_t nvc, const char *name);
|
||||
|
||||
/* Return a boolean value for the first entry in NVC with NAME. */
|
||||
/* Return a boolean value (zero or non-zero) for the first entry in
|
||||
* NVC with NAME. */
|
||||
int nvc_get_boolean (nvc_t nvc, const char *name);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue