aboutsummaryrefslogtreecommitdiffstats
path: root/common/name-value.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-01-24 08:29:04 +0000
committerWerner Koch <[email protected]>2023-01-24 09:07:02 +0000
commitf35e7dbf9e71f847f3c7da40542bd6c37f43711e (patch)
tree68d822b9b43bd3b7e0961449fc7a438dee3653e0 /common/name-value.h
parentdoc: Remove profile and systemd example files. (diff)
downloadgnupg-f35e7dbf9e71f847f3c7da40542bd6c37f43711e.tar.gz
gnupg-f35e7dbf9e71f847f3c7da40542bd6c37f43711e.zip
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
Diffstat (limited to 'common/name-value.h')
-rw-r--r--common/name-value.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/name-value.h b/common/name-value.h
index cf854e04d..504b5d0f0 100644
--- a/common/name-value.h
+++ b/common/name-value.h
@@ -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);