From 2c10b7fd23d7e7acc66edc8ca804d7a7a6897a0d Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Wed, 16 Sep 2009 00:44:31 -0400 Subject: [PATCH] libinterfork: fix warnings --- libinterfork/interfork.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libinterfork/interfork.c b/libinterfork/interfork.c index a8db252..646dbda 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; } } -- 2.34.1