From: Pierre-Marc Fournier Date: Wed, 16 Sep 2009 04:44:31 +0000 (-0400) Subject: libinterfork: fix warnings X-Git-Tag: v1.9.1~914 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2c10b7fd23d7e7acc66edc8ca804d7a7a6897a0d;p=lttng-ust.git libinterfork: fix warnings --- diff --git a/libinterfork/interfork.c b/libinterfork/interfork.c index a8db252f..646dbda2 100644 --- a/libinterfork/interfork.c +++ b/libinterfork/interfork.c @@ -20,6 +20,8 @@ #include #include +extern void ust_fork(void); + pid_t fork(void) { static pid_t (*plibc_func)(void) = NULL; @@ -30,7 +32,7 @@ pid_t fork(void) plibc_func = dlsym(RTLD_NEXT, "fork"); if(plibc_func == NULL) { fprintf(stderr, "libcwrap: unable to find fork\n"); - return NULL; + return -1; } }