fix up some compiler warnings due to new patches
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 23 Mar 2009 22:54:19 +0000 (15:54 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 23 Mar 2009 22:54:19 +0000 (15:54 -0700)
bti.c

diff --git a/bti.c b/bti.c
index 4273d23..5f4a6cb 100644 (file)
--- a/bti.c
+++ b/bti.c
@@ -736,11 +736,11 @@ static int popenRWE(int *rwepipe, const char *exe, const char *const argv[])
                close(out[0]);
                close(err[0]);
                close(0);
                close(out[0]);
                close(err[0]);
                close(0);
-               dup(in[0]);
+               rc = dup(in[0]);
                close(1);
                close(1);
-               dup(out[1]);
+               rc = dup(out[1]);
                close(2);
                close(2);
-               dup(err[1]);
+               rc = dup(err[1]);
 
                execvp(exe, (char**)argv);
                exit(1);
 
                execvp(exe, (char**)argv);
                exit(1);