summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/time.h2
-rw-r--r--src/linux/stime.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/time.h b/include/time.h
index 70574093..dc880706 100644
--- a/include/time.h
+++ b/include/time.h
@@ -125,7 +125,7 @@ struct tm *getdate (const char *);
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
-int stime(time_t *);
+int stime(const time_t *);
time_t timegm(struct tm *);
#endif
diff --git a/src/linux/stime.c b/src/linux/stime.c
index 29a1ec64..7d0443ba 100644
--- a/src/linux/stime.c
+++ b/src/linux/stime.c
@@ -2,7 +2,7 @@
#include <time.h>
#include <sys/time.h>
-int stime(time_t *t)
+int stime(const time_t *t)
{
struct timeval tv = { .tv_sec = *t, .tv_usec = 0 };
return settimeofday(&tv, (void *)0);