]> granicus.if.org Git - nethack/commitdiff
lint tidbit
authorkmhugo <kmhugo>
Sun, 28 Sep 2003 00:10:23 +0000 (00:10 +0000)
committerkmhugo <kmhugo>
Sun, 28 Sep 2003 00:10:23 +0000 (00:10 +0000)
sys/unix/unixmain.c

index 627d10f273b971f658b21c055d489080af7fff21..f2eb52321088b6194a64245d5e38676735ec8556 100644 (file)
@@ -495,12 +495,12 @@ whoami() {
         * Note that we trust the user here; it is possible to play under
         * somebody else's name.
         */
-       register char *s;
-
 #if defined(__APPLE__)
        /* Unixisms just confuse the user */
        (void) strncpy(plname, "player", sizeof(plname)-1);
 #else
+       register char *s;
+
        if (*plname) return FALSE;
        if(/* !*plname && */ (s = nh_getenv("USER")))
                (void) strncpy(plname, s, sizeof(plname)-1);