diff options
author | ed <ed@FreeBSD.org> | 2010-03-13 18:06:17 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-03-13 18:06:17 +0000 |
commit | 533aa54353bcbfc4d972b69b5028b5b0974a7ac0 (patch) | |
tree | 2efe186fc1f547a511400880681a67504eb5dd78 /lib | |
parent | b4809b0e570553066cd9e45450ed33d5966b457a (diff) | |
download | FreeBSD-src-533aa54353bcbfc4d972b69b5028b5b0974a7ac0.zip FreeBSD-src-533aa54353bcbfc4d972b69b5028b5b0974a7ac0.tar.gz |
Small style(9) cleanups.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcompat/4.1/ascftime.c | 3 | ||||
-rw-r--r-- | lib/libcompat/4.1/cftime.c | 3 | ||||
-rw-r--r-- | lib/libcompat/4.1/ftime.c | 3 | ||||
-rw-r--r-- | lib/libcompat/4.1/getpw.c | 13 | ||||
-rw-r--r-- | lib/libcompat/4.3/cfree.c | 1 |
5 files changed, 13 insertions, 10 deletions
diff --git a/lib/libcompat/4.1/ascftime.c b/lib/libcompat/4.1/ascftime.c index b3c15e4..cfb90af 100644 --- a/lib/libcompat/4.1/ascftime.c +++ b/lib/libcompat/4.1/ascftime.c @@ -41,5 +41,6 @@ int ascftime(char *s, const char *format, const struct tm *tmptr) { - return strftime(s, MAXLEN, format? format: "%C", tmptr); + + return (strftime(s, MAXLEN, format? format: "%C", tmptr)); } diff --git a/lib/libcompat/4.1/cftime.c b/lib/libcompat/4.1/cftime.c index 8033e44..41275b6 100644 --- a/lib/libcompat/4.1/cftime.c +++ b/lib/libcompat/4.1/cftime.c @@ -41,6 +41,7 @@ int cftime(char *s, char *format, const time_t *clock) { - return strftime(s, MAXLEN, format? format: "%C", localtime(clock)); + + return (strftime(s, MAXLEN, format? format: "%C", localtime(clock))); } diff --git a/lib/libcompat/4.1/ftime.c b/lib/libcompat/4.1/ftime.c index cc4a7f9..e7be278 100644 --- a/lib/libcompat/4.1/ftime.c +++ b/lib/libcompat/4.1/ftime.c @@ -37,8 +37,7 @@ static char rcsid[] = "$FreeBSD$"; #include <sys/timeb.h> int -ftime(tbp) - struct timeb *tbp; +ftime(struct timeb *tbp) { struct timezone tz; struct timeval t; diff --git a/lib/libcompat/4.1/getpw.c b/lib/libcompat/4.1/getpw.c index d6f4f8b..7c66c8f 100644 --- a/lib/libcompat/4.1/getpw.c +++ b/lib/libcompat/4.1/getpw.c @@ -40,13 +40,14 @@ int getpw(uid_t uid, char *buf) { - struct passwd *pw; + struct passwd *pw; - pw = getpwuid(uid); - endpwent(); + pw = getpwuid(uid); + endpwent(); - if(pw == 0) return -1; + if (pw == 0) + return (-1); - strncpy(buf, pw->pw_name, L_cuserid); - return 0; + strncpy(buf, pw->pw_name, L_cuserid); + return (0); } diff --git a/lib/libcompat/4.3/cfree.c b/lib/libcompat/4.3/cfree.c index ca51d2e..7a7baad 100644 --- a/lib/libcompat/4.3/cfree.c +++ b/lib/libcompat/4.3/cfree.c @@ -39,5 +39,6 @@ static char sccsid[] = "@(#)cfree.c 8.1 (Berkeley) 6/4/93"; void cfree(void *p) { + free(p); } |