summaryrefslogtreecommitdiff
path: root/libc/time/ctime.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/time/ctime.c')
-rw-r--r--libc/time/ctime.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/libc/time/ctime.c b/libc/time/ctime.c
index bc7283d..2f42cd3 100644
--- a/libc/time/ctime.c
+++ b/libc/time/ctime.c
@@ -2,25 +2,25 @@
#include <time.h>
extern void __tm_conv();
-extern void __asc_conv();
+extern void __asctime();
char *
ctime(timep)
-time_t * timep;
+__const time_t * timep;
{
-static char cbuf[26];
- struct tm tmb;
- struct timezone tz;
- time_t offt;
-
- gettimeofday((void*)0, &tz);
-
- offt = -tz.tz_minuteswest*60L;
-
- /* tmb.tm_isdst = ? */
- __tm_conv(&tmb, &timep, offt);
-
- __asc_conv(cbuf, &tmb);
-
- return cbuf;
+ static char cbuf[26];
+ struct tm tmb;
+ struct timezone tz;
+ time_t offt;
+
+ gettimeofday((void*)0, &tz);
+
+ offt = -tz.tz_minuteswest*60L;
+
+ /* tmb.tm_isdst = ? */
+ __tm_conv(&tmb, timep, offt);
+
+ __asctime(cbuf, &tmb);
+
+ return cbuf;
}