patch-fragrouter_c 671 B

123456789101112131415161718192021
  1. $OpenBSD: patch-fragrouter_c,v 1.1 2002/02/24 00:20:25 pvalchev Exp $
  2. --- fragrouter.c.orig Tue Sep 21 09:47:32 1999
  3. +++ fragrouter.c Sat Feb 23 17:14:09 2002
  4. @@ -104,13 +104,13 @@ usage(void)
  5. int
  6. main(int argc, char *argv[])
  7. {
  8. - char c, ebuf[BUFSIZ], hops[BUFSIZ], *dev = NULL;
  9. - int num = 0, type = -1, hopptr = 4;
  10. + char ebuf[BUFSIZ], hops[BUFSIZ], *dev = NULL;
  11. + int c, num = 0, type = -1, hopptr = 4;
  12. attack_handler attack;
  13. hops[0] = '\0';
  14. - while ((c = getopt(argc, argv, "B:F:T:C:R:I:E:M:i:g:G:pVh")) != EOF) {
  15. + while ((c = getopt(argc, argv, "B:F:T:C:R:I:E:M:i:g:G:pVh")) != -1) {
  16. switch (c) {
  17. case 'B':
  18. type = ATTACK_BASE;