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);
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to