summaryrefslogtreecommitdiffstats
path: root/chpass/edit.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1999-04-25 22:37:58 +0000
committerWarner Losh <imp@FreeBSD.org>1999-04-25 22:37:58 +0000
commite7e9d20da36ec9757300784f37aed5181d178894 (patch)
treecb6fd8f0a28817af528cc02b423f961aa342e8b2 /chpass/edit.c
parent30cef967236e71e58d04e008d53d82db5d4361d9 (diff)
downloadpw-darwin-e7e9d20da36ec9757300784f37aed5181d178894.tar.gz
pw-darwin-e7e9d20da36ec9757300784f37aed5181d178894.tar.zst
pw-darwin-e7e9d20da36ec9757300784f37aed5181d178894.zip
More egcs warning fixes:
o main returns int not void o use return 0 at end of main when needed o use braces to avoid potentially ambiguous else o don't default to type int o #ifdef 0 -> #if 0 Reviewed by: obrien and chuckr
Diffstat (limited to 'chpass/edit.c')
-rw-r--r--chpass/edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chpass/edit.c b/chpass/edit.c
index 83cd2c8..cf4ae4d 100644
--- a/chpass/edit.c
+++ b/chpass/edit.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: edit.c,v 1.12 1998/12/06 22:58:14 archie Exp $
+ * $Id: edit.c,v 1.13 1999/02/23 02:41:26 ghelmer Exp $
*/
#ifndef lint
@@ -120,7 +120,7 @@ display(fd, pw)
*pw->pw_shell ? pw->pw_shell : _PATH_BSHELL);
}
/* Only admin can change "restricted" shells. */
-#ifdef 0
+#if 0
else if (ok_shell(pw->pw_shell))
/*
* Make shell a restricted field. Ugly with a