diff options
author | Karel Zak | 2006-12-07 00:25:53 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:25:53 +0100 |
commit | ffc4374869b9ac10539a3c18e13b29d1b0c64484 (patch) | |
tree | 1b8054e83f7f70e8fa77499fc9246d1cc16faa15 /sys-utils | |
parent | Imported from util-linux-2.11n tarball. (diff) | |
download | kernel-qcow2-util-linux-ffc4374869b9ac10539a3c18e13b29d1b0c64484.tar.gz kernel-qcow2-util-linux-ffc4374869b9ac10539a3c18e13b29d1b0c64484.tar.xz kernel-qcow2-util-linux-ffc4374869b9ac10539a3c18e13b29d1b0c64484.zip |
Imported from util-linux-2.11o tarball.
Diffstat (limited to 'sys-utils')
-rw-r--r-- | sys-utils/cytune.c | 3 | ||||
-rw-r--r-- | sys-utils/dmesg.c | 2 | ||||
-rw-r--r-- | sys-utils/ipcs.c | 2 | ||||
-rw-r--r-- | sys-utils/readprofile.c | 2 | ||||
-rw-r--r-- | sys-utils/tunelp.c | 2 |
5 files changed, 5 insertions, 6 deletions
diff --git a/sys-utils/cytune.c b/sys-utils/cytune.c index 5a13c4de8..295e63bb7 100644 --- a/sys-utils/cytune.c +++ b/sys-utils/cytune.c @@ -184,8 +184,7 @@ int main(int argc, char *argv[]) { bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); - while (EOF != (i = getopt(argc, argv, - "qs:S:t:T:gGi:"))) { + while ((i = getopt(argc, argv, "qs:S:t:T:gGi:")) != -1) { switch (i) { case 'q': query = 1; diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index a172fc1f4..29a1bd752 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -53,7 +53,7 @@ main( int argc, char *argv[] ) { textdomain(PACKAGE); progname = argv[0]; - while ((c = getopt( argc, argv, "cn:s:" )) != EOF) { + while ((c = getopt( argc, argv, "cn:s:" )) != -1) { switch (c) { case 'c': cmd = 4; diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c index 0673be564..01cc49488 100644 --- a/sys-utils/ipcs.c +++ b/sys-utils/ipcs.c @@ -149,7 +149,7 @@ main (int argc, char **argv) { textdomain(PACKAGE); progname = argv[0]; - while ((opt = getopt (argc, argv, options)) != EOF) { + while ((opt = getopt (argc, argv, options)) != -1) { switch (opt) { case 'i': id = atoi (optarg); diff --git a/sys-utils/readprofile.c b/sys-utils/readprofile.c index a0dd3ac71..398ebb4ce 100644 --- a/sys-utils/readprofile.c +++ b/sys-utils/readprofile.c @@ -129,7 +129,7 @@ main (int argc, char **argv) { proFile=defaultpro; mapFile=defaultmap; - while ((c=getopt(argc,argv,optstring))!=-1) { + while ((c = getopt(argc,argv,optstring)) != -1) { switch(c) { case 'm': mapFile=optarg; break; case 'n': optNative++; break; diff --git a/sys-utils/tunelp.c b/sys-utils/tunelp.c index 9249283d0..90105dcb4 100644 --- a/sys-utils/tunelp.c +++ b/sys-utils/tunelp.c @@ -135,7 +135,7 @@ main (int argc, char ** argv) { cmds->next = 0; show_irq = 1; - while ((c = getopt(argc, argv, "t:c:w:a:i:ho:C:sq:rT:vV")) != EOF) { + while ((c = getopt(argc, argv, "t:c:w:a:i:ho:C:sq:rT:vV")) != -1) { switch (c) { case 'h': print_usage(progname); |