Small style(9) cleanups.

This commit is contained in:
ed 2010-03-13 18:06:17 +00:00
parent b4809b0e57
commit 533aa54353
5 changed files with 13 additions and 10 deletions

View File

@ -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));
}

View File

@ -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)));
}

View File

@ -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;

View File

@ -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);
}

View File

@ -39,5 +39,6 @@ static char sccsid[] = "@(#)cfree.c 8.1 (Berkeley) 6/4/93";
void
cfree(void *p)
{
free(p);
}