File fix-gcc-warnings.patch of Package tcpscript

Index: tcpscript-0.2/tcpscript.c
===================================================================
--- tcpscript-0.2.orig/tcpscript.c
+++ tcpscript-0.2/tcpscript.c
@@ -251,7 +251,7 @@ void fatal()
     exit(-1);
 }
 
-int set_reusable(int s)
+void set_reusable(int s)
 {
     int boolean = 1;
     int res;
@@ -445,9 +445,9 @@ doshell() {
 		shname = shell;
 
 	if (cflg)
-		execl(shell, shname, "-c", cflg, 0);
+		execl(shell, shname, "-c", cflg, NULL);
 	else
-		execl(shell, shname, "-i", 0);
+		execl(shell, shname, "-i", NULL);
 
 	perror(shell);
 	fail();
openSUSE Build Service is sponsored by