summaryrefslogtreecommitdiffstats
path: root/lib/libcompat
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-05-28 17:03:12 +0000
committeralfred <alfred@FreeBSD.org>2002-05-28 17:03:12 +0000
commit1ee311b26d7122f860fe940db6ce46968981a9a3 (patch)
tree96c195652047b452e756960d6bdfc6786443c564 /lib/libcompat
parentae40c00e1724fe7d6584623e3a953b6b44fc741f (diff)
downloadFreeBSD-src-1ee311b26d7122f860fe940db6ce46968981a9a3.zip
FreeBSD-src-1ee311b26d7122f860fe940db6ce46968981a9a3.tar.gz
Assume __STDC__, remove non-__STDC__ code.
Submitted by: keramida
Diffstat (limited to 'lib/libcompat')
-rw-r--r--lib/libcompat/4.1/ascftime.c7
-rw-r--r--lib/libcompat/4.1/cftime.c7
-rw-r--r--lib/libcompat/4.1/getpw.c6
3 files changed, 0 insertions, 20 deletions
diff --git a/lib/libcompat/4.1/ascftime.c b/lib/libcompat/4.1/ascftime.c
index 088143c..b3c15e4 100644
--- a/lib/libcompat/4.1/ascftime.c
+++ b/lib/libcompat/4.1/ascftime.c
@@ -39,14 +39,7 @@
#define MAXLEN 1000 /* just a guess, only the user knows... */
int
-#if __STDC__
ascftime(char *s, const char *format, const struct tm *tmptr)
-#else
-ascftime(s, format, tmptr)
- char *s;
- char *format;
- struct tm *tmptr;
-#endif
{
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 777055f..8033e44 100644
--- a/lib/libcompat/4.1/cftime.c
+++ b/lib/libcompat/4.1/cftime.c
@@ -39,14 +39,7 @@
#define MAXLEN 1000 /* just a guess, only the user knows... */
int
-#if __STDC__
cftime(char *s, char *format, const time_t *clock)
-#else
-cftime(s, format, clock)
- char *s;
- char *format;
- time_t *clock;
-#endif
{
return strftime(s, MAXLEN, format? format: "%C", localtime(clock));
}
diff --git a/lib/libcompat/4.1/getpw.c b/lib/libcompat/4.1/getpw.c
index 96b4c12..d6f4f8b 100644
--- a/lib/libcompat/4.1/getpw.c
+++ b/lib/libcompat/4.1/getpw.c
@@ -38,13 +38,7 @@
#include <stdio.h>
int
-#if __STDC__
getpw(uid_t uid, char *buf)
-#else
-getpw(uid, buf)
- uid_t uid;
- char *buf;
-#endif
{
struct passwd *pw;
OpenPOWER on IntegriCloud