aboutsummaryrefslogtreecommitdiffstats
path: root/security/portscanner
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1998-12-04 03:17:30 +0800
committerobrien <obrien@FreeBSD.org>1998-12-04 03:17:30 +0800
commita8efadea3770b53b229fe805c9821e6ed83cb735 (patch)
tree09af077d93fe00cb7ff473751e3716455ffc9799 /security/portscanner
parentfb669a02ba78d4fa3f7e4615df89108d3c1b58ad (diff)
downloadfreebsd-ports-gnome-a8efadea3770b53b229fe805c9821e6ed83cb735.tar.gz
freebsd-ports-gnome-a8efadea3770b53b229fe805c9821e6ed83cb735.tar.zst
freebsd-ports-gnome-a8efadea3770b53b229fe805c9821e6ed83cb735.zip
printf() was missing some arguments. -Wall is such a nice thing.
Diffstat (limited to 'security/portscanner')
-rw-r--r--security/portscanner/files/patch-aa20
1 files changed, 16 insertions, 4 deletions
diff --git a/security/portscanner/files/patch-aa b/security/portscanner/files/patch-aa
index 8235c6ea8762..7a0100be070a 100644
--- a/security/portscanner/files/patch-aa
+++ b/security/portscanner/files/patch-aa
@@ -1,18 +1,21 @@
---- portscanner.c.old Wed Nov 18 16:25:41 1998
-+++ portscanner.c Wed Nov 18 16:25:53 1998
-@@ -24,10 +24,10 @@
+--- portscanner.c.orig Sun Aug 9 14:50:35 1998
++++ portscanner.c Thu Dec 3 11:15:05 1998
+@@ -24,18 +24,21 @@
/***********************************************************/
#include <stdio.h>
++#include <stdlib.h>
+#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
-#include <unistd.h>
++#include <arpa/inet.h>
#include <netdb.h>
#include <sys/time.h>
#include <fcntl.h>
-@@ -35,7 +35,7 @@
++#include <string.h>
+
int sock = -1;
struct sockaddr_in address;
int result;
@@ -21,3 +24,12 @@
extern int errno;
int current_port = 0;
u_short base_port = 0;
+@@ -83,7 +86,7 @@
+ } else if (verbose == 2) printf(" address valid\n");
+
+ if ((base_port > end_port) || ((short)base_port < 0)) {
+- fprintf(stderr,"Bad port range : start=%d end=%d !\n");
++ fprintf(stderr,"Bad port range : start=%d end=%d !\n",base_port,end_port);
+ exit(1);
+ } else if (verbose == 2) {
+ printf("Port range: %d to %d\n",base_port,end_port);