libinterfork: fix warnings
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 16 Sep 2009 04:44:31 +0000 (00:44 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 16 Sep 2009 04:44:31 +0000 (00:44 -0400)
libinterfork/interfork.c

index a8db252fe0154fdf3567a5b9db0061e48ade850c..646dbda22f31e826f7ad5205147b831c083c9c5b 100644 (file)
@@ -20,6 +20,8 @@
 #include <unistd.h>
 #include <stdio.h>
 
+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;
                }
        }
 
This page took 0.025179 seconds and 4 git commands to generate.