aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2021-09-07 14:57:10 +0200
committerAlessio Vanni <vannilla@firemail.cc>2021-09-07 15:01:32 +0200
commitc7ed99ce83e15bab7fc7240a77da703d98a06edd (patch)
treea6ea2e76285e79cc0f8f7c4176dabd0b1ca91164 /src
parentd832ad808672dadcf94e02899525cca31054e9bf (diff)
downloadgnunet-c7ed99ce83e15bab7fc7240a77da703d98a06edd.tar.gz
gnunet-c7ed99ce83e15bab7fc7240a77da703d98a06edd.zip
-set return value following the current API
Diffstat (limited to 'src')
-rw-r--r--src/util/gnunet-config.c4
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;
40 */ 40 */
41static int cflags; 41static int cflags;
42 42
43
43/** 44/**
44 * If printing the value of LIBS has been requested. 45 * If printing the value of LIBS has been requested.
45 */ 46 */
46static int libs; 47static int libs;
47 48
49
48/** 50/**
49 * If printing the value of PREFIX has been requested. 51 * If printing the value of PREFIX has been requested.
50 */ 52 */
@@ -75,6 +77,7 @@ run (void *cls,
75 { 77 {
76 char *prefixdir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_PREFIX); 78 char *prefixdir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_PREFIX);
77 char *libdir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_LIBDIR); 79 char *libdir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_LIBDIR);
80
78 if (1 == cflags) 81 if (1 == cflags)
79 { 82 {
80 fprintf (stdout, "-I%sinclude\n", prefixdir); 83 fprintf (stdout, "-I%sinclude\n", prefixdir);
@@ -87,6 +90,7 @@ run (void *cls,
87 { 90 {
88 fprintf (stdout, "%s\n", prefixdir); 91 fprintf (stdout, "%s\n", prefixdir);
89 } 92 }
93 cs->global_ret = 0;
90 GNUNET_free (prefixdir); 94 GNUNET_free (prefixdir);
91 GNUNET_free (libdir); 95 GNUNET_free (libdir);
92 return; 96 return;