summaryrefslogtreecommitdiff
path: root/net/gspoof/files/patch-console.c
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2003-05-12 08:12:41 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2003-05-12 08:12:41 +0000
commit7b3f5df25bd6541c53817b52b7c5e8cfc41ff339 (patch)
tree1cb33bffbf1a6ec61e391b20220e0e89fc17b589 /net/gspoof/files/patch-console.c
parentupgrade to 5.1.5 (diff)
- Fix build on -stable
- Utilize USE_GETOPT_LONG - Utilize NOPORTDOCS PR: 51895 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=80803
Diffstat (limited to 'net/gspoof/files/patch-console.c')
-rw-r--r--net/gspoof/files/patch-console.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/net/gspoof/files/patch-console.c b/net/gspoof/files/patch-console.c
new file mode 100644
index 000000000000..79b02c981e84
--- /dev/null
+++ b/net/gspoof/files/patch-console.c
@@ -0,0 +1,26 @@
+--- console.c.orig Wed Sep 25 04:20:25 2002
++++ console.c Wed May 7 03:42:30 2003
+@@ -333,7 +333,11 @@
+ fgets(value, 20, stdin);
+ seq = atol(value);
+ }
++#ifdef __FreeBSD__
++ while (atoi(value) < 0 || atoi(value) > 4294970000);
++#else
+ while (atoi(value) < 0 || atoll(value) > 4294970000);
++#endif
+ }
+ else if (!strcmp ("3.5", cmd))
+ {
+@@ -343,7 +347,11 @@
+ fgets(value, 20, stdin);
+ ack = atol(value);
+ }
++#ifdef __FreeBSD__
++ while (atoi(value) < 0 || atoi(value) > 4294970000);
++#else
+ while (atoi(value) < 0 || atoll(value) > 4294970000);
++#endif
+ }
+ else if (!strcmp ("3.6", cmd))
+ {