Small style(9) cleanups.
This commit is contained in:
parent
b4809b0e57
commit
533aa54353
@ -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));
|
||||
}
|
||||
|
@ -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)));
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -39,5 +39,6 @@ static char sccsid[] = "@(#)cfree.c 8.1 (Berkeley) 6/4/93";
|
||||
void
|
||||
cfree(void *p)
|
||||
{
|
||||
|
||||
free(p);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user