diff options
author | mikeh <mikeh@FreeBSD.org> | 2001-05-27 20:26:22 +0000 |
---|---|---|
committer | mikeh <mikeh@FreeBSD.org> | 2001-05-27 20:26:22 +0000 |
commit | aa40e2eac7ab213ab193707b4dec5e4bb0a8325b (patch) | |
tree | 35781af5ff6a267c8e45e7cc6091e7df70c229ce /usr.bin/mail/getname.c | |
parent | 83f67b8f31f7864baf3998922833c641684ff0f0 (diff) | |
download | FreeBSD-src-aa40e2eac7ab213ab193707b4dec5e4bb0a8325b.zip FreeBSD-src-aa40e2eac7ab213ab193707b4dec5e4bb0a8325b.tar.gz |
Cleanup mail(1)'s varying styles by converting to using style(9).
Also take a stab at cleaning up BDECFLAGS and convert all uses of
NOSTR, NIL, NONE, NOVAR, NOGRP, NOGE to NULL. Also kill 'register' to
get diffs somewhat closer to OpenBSD/NetBSD.
There are no functional changes however.
Reviewed by: nra (visual inspection)
Diffstat (limited to 'usr.bin/mail/getname.c')
-rw-r--r-- | usr.bin/mail/getname.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/mail/getname.c b/usr.bin/mail/getname.c index dc812d5..4062e93 100644 --- a/usr.bin/mail/getname.c +++ b/usr.bin/mail/getname.c @@ -46,8 +46,7 @@ static const char rcsid[] = /* Getname / getuserid for those with hashed passwd data base). */ /* - * Search the passwd file for a uid. Return name on success, - * NOSTR on failure + * Search the passwd file for a uid. Return name on success, NULL on failure. */ char * getname(uid) @@ -56,8 +55,8 @@ getname(uid) struct passwd *pw; if ((pw = getpwuid(uid)) == NULL) - return NOSTR; - return pw->pw_name; + return (NULL); + return (pw->pw_name); } /* @@ -71,6 +70,6 @@ getuserid(name) struct passwd *pw; if ((pw = getpwnam(name)) == NULL) - return -1; - return pw->pw_uid; + return (-1); + return (pw->pw_uid); } |