From owner-svn-src-head@FreeBSD.ORG Sat Mar 13 18:06:18 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 186811065670; Sat, 13 Mar 2010 18:06:18 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 075628FC16; Sat, 13 Mar 2010 18:06:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o2DI6H0O093279; Sat, 13 Mar 2010 18:06:17 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o2DI6Hik093273; Sat, 13 Mar 2010 18:06:17 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201003131806.o2DI6Hik093273@svn.freebsd.org> From: Ed Schouten Date: Sat, 13 Mar 2010 18:06:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r205125 - in head/lib/libcompat: 4.1 4.3 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Mar 2010 18:06:18 -0000 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 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); }