aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc/rc-misc.c')
-rw-r--r--src/rc/rc-misc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c
index b75c3b4e..1a98537c 100644
--- a/src/rc/rc-misc.c
+++ b/src/rc/rc-misc.c
@@ -443,12 +443,9 @@ RC_SERVICE lookup_service_state(const char *service)
return 0;
}
-char *from_time_t(time_t tv)
+void from_time_t(char *time_string, time_t tv)
{
- char time_string[20];
-
strftime(time_string, 20, "%Y-%m-%d %H:%M:%S", localtime(&tv));
- return time_string;
}
time_t to_time_t(char *timestring)