From c7ed99ce83e15bab7fc7240a77da703d98a06edd Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Tue, 7 Sep 2021 14:57:10 +0200 Subject: -set return value following the current API --- src/util/gnunet-config.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3