summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/tpipe/files/tpipe-1.6-Wimplicit-function-declaration.patch')
-rw-r--r--app-misc/tpipe/files/tpipe-1.6-Wimplicit-function-declaration.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/app-misc/tpipe/files/tpipe-1.6-Wimplicit-function-declaration.patch b/app-misc/tpipe/files/tpipe-1.6-Wimplicit-function-declaration.patch
new file mode 100644
index 000000000000..9a8a094f06b7
--- /dev/null
+++ b/app-misc/tpipe/files/tpipe-1.6-Wimplicit-function-declaration.patch
@@ -0,0 +1,21 @@
+--- a/tap.c
++++ b/tap.c
+@@ -94,7 +94,7 @@
+ else
+ n = strtoul(argv[1],NULL,0);
+
+- if (!(n)&&(argv[1] != '\0')) {
++ if (!(n)&&(*argv[1] != '\0')) {
+ fprintf (stderr, "%s: Unreadable integer arg.; Assuming 1.\n",argv[0]);
+ n = 1;
+ }
+--- a/tpipe.c
++++ b/tpipe.c
+@@ -41,6 +41,7 @@
+
+ #include <stdio.h>
+ #include <string.h> /* strcmp() */
++#include <stdlib.h>
+
+ #ifndef VERSION
+ #define VERSION "1.6"