getopt fixes
This commit is contained in:
parent
3358714145
commit
f288637fce
20
security/fragrouter/patches/patch-fragrouter_c
Normal file
20
security/fragrouter/patches/patch-fragrouter_c
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
$OpenBSD: patch-fragrouter_c,v 1.1 2002/02/24 00:20:25 pvalchev Exp $
|
||||||
|
--- fragrouter.c.orig Tue Sep 21 09:47:32 1999
|
||||||
|
+++ fragrouter.c Sat Feb 23 17:14:09 2002
|
||||||
|
@@ -104,13 +104,13 @@ usage(void)
|
||||||
|
int
|
||||||
|
main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
- char c, ebuf[BUFSIZ], hops[BUFSIZ], *dev = NULL;
|
||||||
|
- int num = 0, type = -1, hopptr = 4;
|
||||||
|
+ char ebuf[BUFSIZ], hops[BUFSIZ], *dev = NULL;
|
||||||
|
+ int c, num = 0, type = -1, hopptr = 4;
|
||||||
|
attack_handler attack;
|
||||||
|
|
||||||
|
hops[0] = '\0';
|
||||||
|
|
||||||
|
- while ((c = getopt(argc, argv, "B:F:T:C:R:I:E:M:i:g:G:pVh")) != EOF) {
|
||||||
|
+ while ((c = getopt(argc, argv, "B:F:T:C:R:I:E:M:i:g:G:pVh")) != -1) {
|
||||||
|
switch (c) {
|
||||||
|
case 'B':
|
||||||
|
type = ATTACK_BASE;
|
Loading…
Reference in New Issue
Block a user