diff options
author | Archie Cobbs <archie@FreeBSD.org> | 1998-12-06 22:58:23 +0000 |
---|---|---|
committer | Archie Cobbs <archie@FreeBSD.org> | 1998-12-06 22:58:23 +0000 |
commit | 33ad2c7486da901252c1e70f3f599106573a978b (patch) | |
tree | 056834f2f9c298e9b219499c3edbc51f12d0371b /chpass/chpass.c | |
parent | 43db2f01d12e3d613fdc8747ed4a16080f11ba79 (diff) | |
download | pw-darwin-33ad2c7486da901252c1e70f3f599106573a978b.tar.gz pw-darwin-33ad2c7486da901252c1e70f3f599106573a978b.tar.zst pw-darwin-33ad2c7486da901252c1e70f3f599106573a978b.zip |
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
Diffstat (limited to 'chpass/chpass.c')
-rw-r--r-- | chpass/chpass.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chpass/chpass.c b/chpass/chpass.c index 982548f..2809f8b 100644 --- a/chpass/chpass.c +++ b/chpass/chpass.c @@ -32,15 +32,15 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1988, 1993, 1994\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint -static char sccsid[] = "From: @(#)chpass.c 8.4 (Berkeley) 4/2/94"; -static char rcsid[] = - "$Id: chpass.c,v 1.13 1997/02/22 19:54:25 peter Exp $"; +static const char sccsid[] = "From: @(#)chpass.c 8.4 (Berkeley) 4/2/94"; +static const char rcsid[] = + "$Id: chpass.c,v 1.14 1997/03/29 04:28:38 imp Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -83,10 +83,10 @@ main(argc, argv) char **argv; { enum { NEWSH, LOADENTRY, EDITENTRY, NEWPW, NEWEXP } op; - struct passwd *pw, lpw; + struct passwd *pw = NULL, lpw; char *username = NULL; int ch, pfd, tfd; - char *arg; + char *arg = NULL; #ifdef YP int force_local = 0; int force_yp = 0; |