diff options
Diffstat (limited to 'lib/strftime.c')
-rw-r--r-- | lib/strftime.c | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/lib/strftime.c b/lib/strftime.c index f18b34029..c13612562 100644 --- a/lib/strftime.c +++ b/lib/strftime.c @@ -157,9 +157,7 @@ extern char *tzname[]; # if ! HAVE_TM_GMTOFF static struct tm *my_strftime_gmtime_r __P ((const time_t *, struct tm *)); static struct tm * -my_strftime_gmtime_r (t, tp) - const time_t *t; - struct tm *tp; +my_strftime_gmtime_r (const time_t *t, struct tm *tp) { struct tm *l = gmtime (t); if (! l) @@ -171,9 +169,7 @@ my_strftime_gmtime_r (t, tp) static struct tm *my_strftime_localtime_r __P ((const time_t *, struct tm *)); static struct tm * -my_strftime_localtime_r (t, tp) - const time_t *t; - struct tm *tp; +my_strftime_localtime_r (const time_t *t, struct tm *tp) { struct tm *l = localtime (t); if (! l) @@ -274,10 +270,7 @@ static const char zeroes[16] = /* "0000000000000000" */ static char *memcpy_lowcase __P ((char *dest, const char *src, size_t len)); static char * -memcpy_lowcase (dest, src, len) - char *dest; - const char *src; - size_t len; +memcpy_lowcase (char *dest, const char *src, size_t len) { while (len-- > 0) dest[len] = TOLOWER ((unsigned char) src[len]); @@ -287,10 +280,7 @@ memcpy_lowcase (dest, src, len) static char *memcpy_uppcase __P ((char *dest, const char *src, size_t len)); static char * -memcpy_uppcase (dest, src, len) - char *dest; - const char *src; - size_t len; +memcpy_uppcase (char *dest, const char *src, size_t len) { while (len-- > 0) dest[len] = TOUPPER ((unsigned char) src[len]); @@ -304,9 +294,7 @@ memcpy_uppcase (dest, src, len) # define tm_diff ftime_tm_diff static int tm_diff __P ((const struct tm *, const struct tm *)); static int -tm_diff (a, b) - const struct tm *a; - const struct tm *b; +tm_diff (const struct tm *a, const struct tm *b) { /* Compute intervening leap days correctly even if year is negative. Take care to avoid int overflow in leap day calculations, @@ -341,9 +329,7 @@ static int iso_week_days __P ((int, int)); __inline__ #endif static int -iso_week_days (yday, wday) - int yday; - int wday; +iso_week_days (int yday, int wday) { /* Add enough to the first operand of % to make it nonnegative. */ int big_enough_multiple_of_7 = (-YDAY_MINIMUM / 7 + 2) * 7; @@ -411,12 +397,8 @@ static char const month_name[][10] = anywhere, so to determine how many characters would be written, use NULL for S and (size_t) UINT_MAX for MAXSIZE. */ size_t -my_strftime (s, maxsize, format, tp ut_argument) - char *s; - size_t maxsize; - const char *format; - const struct tm *tp; - ut_argument_spec +my_strftime (char *s, size_t maxsize, const char *format, const struct tm *tp + ut_argument_spec) { int hour12 = tp->tm_hour; #ifdef _NL_CURRENT |