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 /text-utils/ul.c | |
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 'text-utils/ul.c')
-rw-r--r-- | text-utils/ul.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/text-utils/ul.c b/text-utils/ul.c index fb0a697d1..6396f2dfe 100644 --- a/text-utils/ul.c +++ b/text-utils/ul.c @@ -114,8 +114,6 @@ int iflag; int main(int argc, char **argv) { - extern int optind; - extern char *optarg; int c, ret; char *termtype; FILE *f; @@ -127,7 +125,7 @@ int main(int argc, char **argv) termtype = getenv("TERM"); if (termtype == NULL || (argv[0][0] == 'c' && !isatty(1))) termtype = "lpr"; - while ((c=getopt(argc, argv, "it:T:")) != EOF) + while ((c = getopt(argc, argv, "it:T:")) != -1) switch(c) { case 't': |