diff options
-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); } |