aboutsummaryrefslogtreecommitdiffstats
path: root/include/time.h
diff options
context:
space:
mode:
authorRobert Drehmel <robert@FreeBSD.org>2002-08-14 23:20:48 +0000
committerRobert Drehmel <robert@FreeBSD.org>2002-08-14 23:20:48 +0000
commit620035ef8982a70259ba414df3039c0d1625aa58 (patch)
tree433d2e30afb321df49de5b3e5b0d47da7cb507e0 /include/time.h
parentad906968153f7b35f2e92b49936a22f44d5aa0c0 (diff)
downloadsrc-620035ef8982a70259ba414df3039c0d1625aa58.tar.gz
src-620035ef8982a70259ba414df3039c0d1625aa58.zip
- Add the 'restrict' qualifier to the function definition of
strftime(3) for IEEE Std 1003.1-2001 compliance and remove excessive usage of the 'const' qualifier that was neither present in the prototype in the publice header, nor in the local prototype just above the function definition. - Replace the K&R function definition with a ANSI-C one. - Update the prototype of strftime(3) in its manual page.
Notes
Notes: svn path=/head/; revision=101888
Diffstat (limited to 'include/time.h')
-rw-r--r--include/time.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/time.h b/include/time.h
index e17feb3b2427..daf8e90c8c66 100644
--- a/include/time.h
+++ b/include/time.h
@@ -121,7 +121,8 @@ double difftime(time_t, time_t);
struct tm *gmtime(const time_t *);
struct tm *localtime(const time_t *);
time_t mktime(struct tm *);
-size_t strftime(char *, size_t, const char *, const struct tm *);
+size_t strftime(char *__restrict, size_t, const char *__restrict,
+ const struct tm *__restrict);
time_t time(time_t *);
#if __POSIX_VISIBLE