From: Alan Cox Date: Fri, 17 Jun 2016 22:32:00 +0000 (+0100) Subject: passwd: fix warnings X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c97be95a5107cdd760041c18250092c4ac997ca0;p=FUZIX.git passwd: fix warnings --- diff --git a/Applications/util/passwd.c b/Applications/util/passwd.c index 7ca6e0a3..62242fe7 100644 --- a/Applications/util/passwd.c +++ b/Applications/util/passwd.c @@ -24,13 +24,13 @@ int time_zone = 0; int main(int argc, char *argv[]) { - char *s, *pbuf, *tmp_fname, *pwf = "/etc/passwd"; + char *s, *pbuf, *tmp_fname; + const char *pwf = "/etc/passwd"; char salt[3]; int n, failure_cnt, uid, gid; struct passwd *pwd; FILE * passwd_fp; time_t now; - long lnow; umask(022);