diff options
author | redman <redman> | 1999-07-22 01:26:17 (GMT) |
---|---|---|
committer | redman <redman> | 1999-07-22 01:26:17 (GMT) |
commit | 42dc6740de7cbdbcc0930226d7c35f11fc8f051d (patch) | |
tree | b3656630330364f692f672bbca4293cf8647962f /compat | |
parent | 54b6980992593dd026c12db3f5aaef9dce67e0e3 (diff) | |
download | tcl-42dc6740de7cbdbcc0930226d7c35f11fc8f051d.zip tcl-42dc6740de7cbdbcc0930226d7c35f11fc8f051d.tar.gz tcl-42dc6740de7cbdbcc0930226d7c35f11fc8f051d.tar.bz2 |
revert changes to TclpStrftime, not needed for internal functions.
Diffstat (limited to 'compat')
-rw-r--r-- | compat/strftime.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compat/strftime.c b/compat/strftime.c index 8f93a1a..bb8ea52 100644 --- a/compat/strftime.c +++ b/compat/strftime.c @@ -8,7 +8,7 @@ * source. See the copyright notice below for details on redistribution * restrictions. The "license.terms" file does not apply to this file. * - * RCS: @(#) $Id: strftime.c,v 1.4 1999/07/22 01:08:04 redman Exp $ + * RCS: @(#) $Id: strftime.c,v 1.5 1999/07/22 01:26:18 redman Exp $ */ /* @@ -45,7 +45,7 @@ */ #if defined(LIBC_SCCS) -static char *rcsid = "$Id: strftime.c,v 1.4 1999/07/22 01:08:04 redman Exp $"; +static char *rcsid = "$Id: strftime.c,v 1.5 1999/07/22 01:26:18 redman Exp $"; #endif /* LIBC_SCCS */ #include <time.h> @@ -104,7 +104,7 @@ static int _secs _ANSI_ARGS_((const struct tm *t)); static size_t _fmt _ANSI_ARGS_((const char *format, const struct tm *t)); -unsigned long +size_t TclpStrftime(s, maxsize, format, t) char *s; size_t maxsize; @@ -115,12 +115,12 @@ TclpStrftime(s, maxsize, format, t) pt = s; if ((gsize = maxsize) < 1) - return (unsigned long)(0); + return(0); if (_fmt(format, t)) { *pt = '\0'; - return (unsigned long) (maxsize - gsize); + return(maxsize - gsize); } - return (unsigned long)(0); + return(0); } #define SUN_WEEK(t) (((t)->tm_yday + 7 - \ |