]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - login-utils/last.c
Imported from util-linux-2.11o tarball.
[thirdparty/util-linux.git] / login-utils / last.c
index 8d3a8911a21bbae05aebf3c7c027e866b401ea90..6d0ce2ff612f172cf9baa2fa856b5e04c9eb1898 100644 (file)
@@ -113,7 +113,7 @@ main(int argc, char **argv) {
        bindtextdomain(PACKAGE, LOCALEDIR);
        textdomain(PACKAGE);
 
-       while ((ch = getopt(argc, argv, "0123456789yli:f:h:t:")) != EOF)
+       while ((ch = getopt(argc, argv, "0123456789yli:f:h:t:")) != -1)
                switch((char)ch) {
                case '0': case '1': case '2': case '3': case '4':
                case '5': case '6': case '7': case '8': case '9':