summaryrefslogtreecommitdiff
path: root/lib/libcompat
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2010-03-13 18:06:17 +0000
committerEd Schouten <ed@FreeBSD.org>2010-03-13 18:06:17 +0000
commitff0f9d8c07cc670f64c1cbf048296a531c0f0d22 (patch)
tree2efe186fc1f547a511400880681a67504eb5dd78 /lib/libcompat
parent39033fab9d79aad3b2a7b2950527cab8e22309cb (diff)
Notes
Diffstat (limited to 'lib/libcompat')
-rw-r--r--lib/libcompat/4.1/ascftime.c3
-rw-r--r--lib/libcompat/4.1/cftime.c3
-rw-r--r--lib/libcompat/4.1/ftime.c3
-rw-r--r--lib/libcompat/4.1/getpw.c13
-rw-r--r--lib/libcompat/4.3/cfree.c1
5 files changed, 13 insertions, 10 deletions
diff --git a/lib/libcompat/4.1/ascftime.c b/lib/libcompat/4.1/ascftime.c
index b3c15e43f326..cfb90afd5d8a 100644
--- a/lib/libcompat/4.1/ascftime.c
+++ b/lib/libcompat/4.1/ascftime.c
@@ -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));
}
diff --git a/lib/libcompat/4.1/cftime.c b/lib/libcompat/4.1/cftime.c
index 8033e446eb92..41275b669b7b 100644
--- a/lib/libcompat/4.1/cftime.c
+++ b/lib/libcompat/4.1/cftime.c
@@ -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)));
}
diff --git a/lib/libcompat/4.1/ftime.c b/lib/libcompat/4.1/ftime.c
index cc4a7f9ca071..e7be278dce81 100644
--- a/lib/libcompat/4.1/ftime.c
+++ b/lib/libcompat/4.1/ftime.c
@@ -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;
diff --git a/lib/libcompat/4.1/getpw.c b/lib/libcompat/4.1/getpw.c
index d6f4f8b5c213..7c66c8f4afb5 100644
--- a/lib/libcompat/4.1/getpw.c
+++ b/lib/libcompat/4.1/getpw.c
@@ -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);
}
diff --git a/lib/libcompat/4.3/cfree.c b/lib/libcompat/4.3/cfree.c
index ca51d2e95942..7a7baadb6bce 100644
--- a/lib/libcompat/4.3/cfree.c
+++ b/lib/libcompat/4.3/cfree.c
@@ -39,5 +39,6 @@ static char sccsid[] = "@(#)cfree.c 8.1 (Berkeley) 6/4/93";
void
cfree(void *p)
{
+
free(p);
}