summaryrefslogtreecommitdiffstats
path: root/text-utils/ul.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-utils/ul.c')
-rw-r--r--text-utils/ul.c4
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':