diff options
author | Alessio Vanni <vannilla@firemail.cc> | 2021-09-07 14:57:10 +0200 |
---|---|---|
committer | Alessio Vanni <vannilla@firemail.cc> | 2021-09-07 15:01:32 +0200 |
commit | c7ed99ce83e15bab7fc7240a77da703d98a06edd (patch) | |
tree | a6ea2e76285e79cc0f8f7c4176dabd0b1ca91164 | |
parent | d832ad808672dadcf94e02899525cca31054e9bf (diff) |
-set return value following the current APIdev/vanni/build-info
-rw-r--r-- | src/util/gnunet-config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/gnunet-config.c b/src/util/gnunet-config.c index b81b3b6a7..2ca78577e 100644 --- a/src/util/gnunet-config.c +++ b/src/util/gnunet-config.c @@ -40,11 +40,13 @@ static char *backend_check; */ static int cflags; + /** * If printing the value of LIBS has been requested. */ static int libs; + /** * If printing the value of PREFIX has been requested. */ @@ -75,6 +77,7 @@ run (void *cls, { char *prefixdir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_PREFIX); char *libdir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_LIBDIR); + if (1 == cflags) { fprintf (stdout, "-I%sinclude\n", prefixdir); @@ -87,6 +90,7 @@ run (void *cls, { fprintf (stdout, "%s\n", prefixdir); } + cs->global_ret = 0; GNUNET_free (prefixdir); GNUNET_free (libdir); return; |