/[gentoo-x86]/net-misc/l7-filter-userspace/files/l7-filter-userspace-0.11-arm-ppc-getopt-help-fix.patch
Gentoo

Contents of /net-misc/l7-filter-userspace/files/l7-filter-userspace-0.11-arm-ppc-getopt-help-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Mar 3 15:31:46 2012 UTC (2 years, 1 month ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Include fixes from debian and ppc/arm compatibility, bug #329397 (by Gavin Pryke).

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 --- l7-filter-userspace-0.11/l7-filter.cpp.old 2010-07-12 10:43:58.485002456 +0100
2 +++ l7-filter-userspace-0.11/l7-filter.cpp 2010-07-12 11:14:38.825001868 +0100
3 @@ -186,15 +186,11 @@
4 conffilename = "";
5 const char *opts = "f:q:vh?sb:dn:p:m:cz";
6
7 - int done = 0;
8 - while(!done)
9 + int c;
10 + while ((c = getopt (argc, argv, opts)) != -1)
11 {
12 - char c;
13 - switch(c = getopt(argc, argv, opts))
14 + switch(c)
15 {
16 - case -1:
17 - done = 1;
18 - break;
19 case 'f':
20 conffilename = optarg;
21 break;

  ViewVC Help
Powered by ViewVC 1.1.20