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.
This commit is contained in:
Rich Felker committed 2014-01-07 03:02:14 -05:00
1 parent 74998fbec1
commit 1d23b3c913
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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