diff options
author | dt <dt@FreeBSD.org> | 1998-09-12 21:13:29 +0000 |
---|---|---|
committer | dt <dt@FreeBSD.org> | 1998-09-12 21:13:29 +0000 |
commit | 4933b6a9305afec5bb7d90746ae2dd6bef4932bd (patch) | |
tree | 38833f68057c2f0cd656abab5fbaccdceb551c48 /lib/libc/stdtime/strptime.c | |
parent | 714948938bb3a857ee0b2a1a96699da355945a00 (diff) | |
download | FreeBSD-src-4933b6a9305afec5bb7d90746ae2dd6bef4932bd.zip FreeBSD-src-4933b6a9305afec5bb7d90746ae2dd6bef4932bd.tar.gz |
Change return type of strptime from const char* to char*.
const char* was wrong and nonstandard.
Diffstat (limited to 'lib/libc/stdtime/strptime.c')
-rw-r--r-- | lib/libc/stdtime/strptime.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c index 1158b25..4c71eaa 100644 --- a/lib/libc/stdtime/strptime.c +++ b/lib/libc/stdtime/strptime.c @@ -53,7 +53,7 @@ #ifdef LIBC_RCS static const char rcsid[] = - "$Id: strptime.c,v 1.2 1997/08/09 15:43:56 joerg Exp $"; + "$Id: strptime.c,v 1.3 1997/08/13 13:11:53 ache Exp $"; #endif #ifndef lint @@ -71,7 +71,7 @@ static char sccsid[] = "@(#)strptime.c 0.1 (Powerdog) 94/03/27"; #define asizeof(a) (sizeof (a) / sizeof ((a)[0])) -const char * +char * strptime(const char *buf, const char *fmt, struct tm *tm) { char c; @@ -345,5 +345,5 @@ strptime(const char *buf, const char *fmt, struct tm *tm) } } - return buf; + return (char *)buf; } |