summaryrefslogtreecommitdiff
path: root/net/gspoof/files/patch-console.c
blob: 9a185e566b3685d52bec18e77c8cc9adf667b3fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- console.c.orig	Sat Aug 30 00:16:50 2003
+++ console.c	Sat Aug 30 15:56:23 2003
@@ -335,7 +335,11 @@
 		  fgets(value, 20, stdin);
 		  seq = atol(value);
 	       }
+#ifdef __FreeBSD__
+	     while (atoi(value) < 0 || strtoll(value, NULL, 10) > 4294970000);
+#else
 	     while (atoi(value) < 0 || atoll(value) > 4294970000);
+#endif
 	  }
 	else if (!strcmp ("3.5", cmd))
 	  {
@@ -345,7 +349,11 @@
 		  fgets(value, 20, stdin);
 		  ack = atol(value);
 	       }
+#ifdef __FreeBSD__
+	     while (atoi(value) < 0 || strtoll(value, NULL, 10) > 4294970000);
+#else
 	     while (atoi(value) < 0 || atoll(value) > 4294970000);
+#endif
 	  }
 	else if (!strcmp ("3.6", cmd))
 	  {