From: Zdeněk Salvet Date: Fri, 22 Oct 2004 06:54:40 +0000 (+0000) Subject: Advance argv after options. X-Git-Tag: gridsite-core_R_1_0_4~77 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=ced3d5c7e6da968ed832866bc8f9c213fd5e8c3d;p=jra1mw.git Advance argv after options. --- diff --git a/org.glite.jp.primary/examples/jpps-test.c b/org.glite.jp.primary/examples/jpps-test.c index 4121605..484dba5 100644 --- a/org.glite.jp.primary/examples/jpps-test.c +++ b/org.glite.jp.primary/examples/jpps-test.c @@ -91,6 +91,7 @@ int main(int argc,char *argv[]) while ((opt = getopt(argc,argv,"s:")) >= 0) switch (opt) { case 's': server = optarg; + argv += 2; break; case '?': usage(argv[0]); }