diff options
Diffstat (limited to 'time')
-rw-r--r-- | time/adjtime.c | 4 | ||||
-rw-r--r-- | time/dysize.c | 3 | ||||
-rw-r--r-- | time/ftime.c | 3 | ||||
-rw-r--r-- | time/getitimer.c | 4 | ||||
-rw-r--r-- | time/gettimeofday.c | 4 | ||||
-rw-r--r-- | time/gmtime.c | 7 | ||||
-rw-r--r-- | time/localtime.c | 7 | ||||
-rw-r--r-- | time/offtime.c | 5 | ||||
-rw-r--r-- | time/settimeofday.c | 4 | ||||
-rw-r--r-- | time/stime.c | 3 | ||||
-rw-r--r-- | time/strftime_l.c | 8 | ||||
-rw-r--r-- | time/strptime.c | 5 | ||||
-rw-r--r-- | time/time.c | 3 | ||||
-rw-r--r-- | time/timespec_get.c | 4 | ||||
-rw-r--r-- | time/tzset.c | 13 |
15 files changed, 20 insertions, 57 deletions
diff --git a/time/adjtime.c b/time/adjtime.c index 052931d..436ff04 100644 --- a/time/adjtime.c +++ b/time/adjtime.c @@ -23,9 +23,7 @@ of time adjustment remaining to be done from the last `__adjtime' call. This call is restricted to the super-user. */ int -__adjtime (delta, olddelta) - const struct timeval *delta; - struct timeval *olddelta; +__adjtime (const struct timeval *delta, struct timeval *olddelta) { __set_errno (ENOSYS); return -1; diff --git a/time/dysize.c b/time/dysize.c index 95b6095..f1b5a08 100644 --- a/time/dysize.c +++ b/time/dysize.c @@ -18,8 +18,7 @@ #include <time.h> int -dysize (year) - int year; +dysize (int year) { return __isleap (year) ? 366 : 365; } diff --git a/time/ftime.c b/time/ftime.c index 6074672..5f71da8 100644 --- a/time/ftime.c +++ b/time/ftime.c @@ -20,8 +20,7 @@ #include <sys/timeb.h> int -ftime (timebuf) - struct timeb *timebuf; +ftime (struct timeb *timebuf) { int save = errno; struct tm tp; diff --git a/time/getitimer.c b/time/getitimer.c index e9d2920..c138414 100644 --- a/time/getitimer.c +++ b/time/getitimer.c @@ -22,9 +22,7 @@ /* Set *VALUE to the current setting of timer WHICH. Return 0 on success, -1 on errors. */ int -__getitimer (which, value) - enum __itimer_which which; - struct itimerval *value; +__getitimer (enum __itimer_which which, struct itimerval *value) { if (value == NULL) { diff --git a/time/gettimeofday.c b/time/gettimeofday.c index 399eb60..f120f55 100644 --- a/time/gettimeofday.c +++ b/time/gettimeofday.c @@ -22,9 +22,7 @@ putting it into *TV and *TZ. If TZ is NULL, *TZ is not filled. Returns 0 on success, -1 on errors. */ int -__gettimeofday (tv, tz) - struct timeval *tv; - struct timezone *tz; +__gettimeofday (struct timeval *tv, struct timezone *tz) { __set_errno (ENOSYS); return -1; diff --git a/time/gmtime.c b/time/gmtime.c index 60ac207..ae18c8c 100644 --- a/time/gmtime.c +++ b/time/gmtime.c @@ -21,9 +21,7 @@ /* Return the `struct tm' representation of *T in UTC, using *TP to store the result. */ struct tm * -__gmtime_r (t, tp) - const time_t *t; - struct tm *tp; +__gmtime_r (const time_t *t, struct tm *tp) { return __tz_convert (t, 0, tp); } @@ -33,8 +31,7 @@ weak_alias (__gmtime_r, gmtime_r) /* Return the `struct tm' representation of *T in UTC. */ struct tm * -gmtime (t) - const time_t *t; +gmtime (const time_t *t) { return __tz_convert (t, 0, &_tmbuf); } diff --git a/time/localtime.c b/time/localtime.c index 38f3123..14b6854 100644 --- a/time/localtime.c +++ b/time/localtime.c @@ -25,9 +25,7 @@ struct tm _tmbuf; /* Return the `struct tm' representation of *T in local time, using *TP to store the result. */ struct tm * -__localtime_r (t, tp) - const time_t *t; - struct tm *tp; +__localtime_r (const time_t *t, struct tm *tp) { return __tz_convert (t, 1, tp); } @@ -36,8 +34,7 @@ weak_alias (__localtime_r, localtime_r) /* Return the `struct tm' representation of *T in local time. */ struct tm * -localtime (t) - const time_t *t; +localtime (const time_t *t) { return __tz_convert (t, 1, &_tmbuf); } diff --git a/time/offtime.c b/time/offtime.c index a437266..8aaabb2 100644 --- a/time/offtime.c +++ b/time/offtime.c @@ -26,10 +26,7 @@ and store year, yday, mon, mday, wday, hour, min, sec into *TP. Return nonzero if successful. */ int -__offtime (t, offset, tp) - const time_t *t; - long int offset; - struct tm *tp; +__offtime (const time_t *t, long int offset, struct tm *tp) { time_t days, rem, y; const unsigned short int *ip; diff --git a/time/settimeofday.c b/time/settimeofday.c index 513e194..d6a632a 100644 --- a/time/settimeofday.c +++ b/time/settimeofday.c @@ -21,9 +21,7 @@ /* Set the current time of day and timezone information. This call is restricted to the super-user. */ int -__settimeofday (tv, tz) - const struct timeval *tv; - const struct timezone *tz; +__settimeofday (const struct timeval *tv, const struct timezone *tz) { __set_errno (ENOSYS); return -1; diff --git a/time/stime.c b/time/stime.c index b86b152..4d65333 100644 --- a/time/stime.c +++ b/time/stime.c @@ -22,8 +22,7 @@ /* Set the system clock to *WHEN. */ int -stime (when) - const time_t *when; +stime (const time_t *when) { if (when == NULL) { diff --git a/time/strftime_l.c b/time/strftime_l.c index 4eb647c..26829cf 100644 --- a/time/strftime_l.c +++ b/time/strftime_l.c @@ -366,9 +366,7 @@ memcpy_uppcase (dest, src, len LOCALE_PARAM) # define tm_diff ftime_tm_diff static int tm_diff (const struct tm *, const struct tm *) __THROW; 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, @@ -403,9 +401,7 @@ static int iso_week_days (int, int) __THROW; __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; diff --git a/time/strptime.c b/time/strptime.c index fb98c62..04e8135 100644 --- a/time/strptime.c +++ b/time/strptime.c @@ -27,10 +27,7 @@ char * -strptime (buf, format, tm) - const char *buf; - const char *format; - struct tm *tm; +strptime (const char *buf, const char *format, struct tm *tm) { return __strptime_internal (buf, format, tm, NULL, _NL_CURRENT_LOCALE); } diff --git a/time/time.c b/time/time.c index ee313e3..78f5e0d 100644 --- a/time/time.c +++ b/time/time.c @@ -20,8 +20,7 @@ /* Return the time now, and store it in *TIMER if not NULL. */ time_t -time (timer) - time_t *timer; +time (time_t *timer) { __set_errno (ENOSYS); diff --git a/time/timespec_get.c b/time/timespec_get.c index 28772d5..a1d169e 100644 --- a/time/timespec_get.c +++ b/time/timespec_get.c @@ -20,9 +20,7 @@ /* Set TS to calendar time based in time base BASE. */ int -timespec_get (ts, base) - struct timespec *ts; - int base; +timespec_get (struct timespec *ts, int base) { switch (base) { diff --git a/time/tzset.c b/time/tzset.c index 01b76b4..ee255f4 100644 --- a/time/tzset.c +++ b/time/tzset.c @@ -394,9 +394,7 @@ __tzset_parse_tz (const char *tz) /* Interpret the TZ envariable. */ static void internal_function -tzset_internal (always, explicit) - int always; - int explicit; +tzset_internal (int always, int explicit) { static int is_initialized; const char *tz; @@ -466,9 +464,7 @@ tzset_internal (always, explicit) put it in RULE->change, saving YEAR in RULE->computed_for. */ static void internal_function -compute_change (rule, year) - tz_rule *rule; - int year; +compute_change (tz_rule *rule, int year) { time_t t; @@ -557,10 +553,7 @@ compute_change (rule, year) `__timezone', and `__daylight' accordingly. */ void internal_function -__tz_compute (timer, tm, use_localtime) - time_t timer; - struct tm *tm; - int use_localtime; +__tz_compute (time_t timer, struct tm *tm, int use_localtime) { compute_change (&tz_rules[0], 1900 + tm->tm_year); compute_change (&tz_rules[1], 1900 + tm->tm_year); |