From 1d23b3c9136f606276142ec0037ff78fbb95e26d Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 7 Jan 2014 03:02:14 -0500 Subject: fix const-correctness of argument to stime it's unclear what the historical signature for this function was, but semantically, the argument should be a pointer to const, and this is what glibc uses. correct programs should not be using this function anyway, so it's unlikely to matter. --- src/linux/stime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 #include -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); -- cgit v1.2.1