From f35e7dbf9e71f847f3c7da40542bd6c37f43711e Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 24 Jan 2023 09:29:04 +0100 Subject: 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 --- common/name-value.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/name-value.h') 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); -- cgit v1.2.3