summaryrefslogtreecommitdiffstats
path: root/main/glib/asctime.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/glib/asctime.c')
-rw-r--r--main/glib/asctime.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/main/glib/asctime.c b/main/glib/asctime.c
index 7a042c3..4aa23d7 100644
--- a/main/glib/asctime.c
+++ b/main/glib/asctime.c
@@ -2,18 +2,19 @@
#include "genlib.h"
static const char *days[] =
- {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
+{"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
-static const char *months[] =
- { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
- "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
+static const char *months[] = {
+ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
+ "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
+};
char *asctime_r(const struct tm *t, char *ret)
{
- sprintf(ret, "%s %s %2d, %4d %2d:%02d:%02d",
- days[t->tm_wday], months[t->tm_mon],
- t->tm_mday, t->tm_year + 1970,
- t->tm_hour, t->tm_min, t->tm_sec);
- return ret;
+ sprintf(ret, "%s %s %2d, %4d %2d:%02d:%02d",
+ days[t->tm_wday], months[t->tm_mon],
+ t->tm_mday, t->tm_year + 1970,
+ t->tm_hour, t->tm_min, t->tm_sec);
+ return ret;
}