Date: Sat, 13 Mar 2010 18:06:17 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r205125 - in head/lib/libcompat: 4.1 4.3 Message-ID: <201003131806.o2DI6Hik093273@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Sat Mar 13 18:06:17 2010 New Revision: 205125 URL: http://svn.freebsd.org/changeset/base/205125 Log: Small style(9) cleanups. Modified: head/lib/libcompat/4.1/ascftime.c head/lib/libcompat/4.1/cftime.c head/lib/libcompat/4.1/ftime.c head/lib/libcompat/4.1/getpw.c head/lib/libcompat/4.3/cfree.c Modified: head/lib/libcompat/4.1/ascftime.c ============================================================================== --- head/lib/libcompat/4.1/ascftime.c Sat Mar 13 16:37:17 2010 (r205124) +++ head/lib/libcompat/4.1/ascftime.c Sat Mar 13 18:06:17 2010 (r205125) @@ -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)); } Modified: head/lib/libcompat/4.1/cftime.c ============================================================================== --- head/lib/libcompat/4.1/cftime.c Sat Mar 13 16:37:17 2010 (r205124) +++ head/lib/libcompat/4.1/cftime.c Sat Mar 13 18:06:17 2010 (r205125) @@ -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))); } Modified: head/lib/libcompat/4.1/ftime.c ============================================================================== --- head/lib/libcompat/4.1/ftime.c Sat Mar 13 16:37:17 2010 (r205124) +++ head/lib/libcompat/4.1/ftime.c Sat Mar 13 18:06:17 2010 (r205125) @@ -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; Modified: head/lib/libcompat/4.1/getpw.c ============================================================================== --- head/lib/libcompat/4.1/getpw.c Sat Mar 13 16:37:17 2010 (r205124) +++ head/lib/libcompat/4.1/getpw.c Sat Mar 13 18:06:17 2010 (r205125) @@ -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); } Modified: head/lib/libcompat/4.3/cfree.c ============================================================================== --- head/lib/libcompat/4.3/cfree.c Sat Mar 13 16:37:17 2010 (r205124) +++ head/lib/libcompat/4.3/cfree.c Sat Mar 13 18:06:17 2010 (r205125) @@ -39,5 +39,6 @@ static char sccsid[] = "@(#)cfree.c 8.1 void cfree(void *p) { + free(p); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003131806.o2DI6Hik093273>