diff options
author | Ivan Zhakov <ivan@apache.org> | 2022-11-20 07:14:38 +0000 |
---|---|---|
committer | Ivan Zhakov <ivan@apache.org> | 2022-11-20 07:14:38 +0000 |
commit | 4f9b76b6f2acc4030ce9ef164322514c5d0e761b (patch) | |
tree | 9b993b3753affcbf164056826f9d568d8760b3a1 /time | |
parent | 961caf5f46055483fa72ab02f5e8baa16c209e2f (diff) | |
download | apr-4f9b76b6f2acc4030ce9ef164322514c5d0e761b.tar.gz |
Remove trailing whitespaces in *.c.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r-- | time/unix/time.c | 6 | ||||
-rw-r--r-- | time/unix/timestr.c | 2 | ||||
-rw-r--r-- | time/win32/time.c | 16 | ||||
-rw-r--r-- | time/win32/timestr.c | 2 |
4 files changed, 13 insertions, 13 deletions
diff --git a/time/unix/time.c b/time/unix/time.c index 0a9377f55..0c0401b1d 100644 --- a/time/unix/time.c +++ b/time/unix/time.c @@ -38,7 +38,7 @@ #if !defined(HAVE_STRUCT_TM_TM_GMTOFF) && !defined(HAVE_STRUCT_TM___TM_GMTOFF) static apr_int32_t server_gmt_offset; #define NO_GMTOFF_IN_STRUCT_TM -#endif +#endif static apr_int32_t get_offset(struct tm *tm) { @@ -164,7 +164,7 @@ APR_DECLARE(apr_status_t) apr_time_exp_get(apr_time_t *t, apr_time_exp_t *xt) return APR_SUCCESS; } -APR_DECLARE(apr_status_t) apr_time_exp_gmt_get(apr_time_t *t, +APR_DECLARE(apr_status_t) apr_time_exp_gmt_get(apr_time_t *t, apr_time_exp_t *xt) { apr_status_t status = apr_time_exp_get(t, xt); @@ -244,7 +244,7 @@ APR_DECLARE(void) apr_sleep(apr_interval_time_t t) delay((t + 999) / 1000); #elif defined(HAVE_NANOSLEEP) struct timespec ts; - ts.tv_sec = t / APR_USEC_PER_SEC; + ts.tv_sec = t / APR_USEC_PER_SEC; ts.tv_nsec = (t % APR_USEC_PER_SEC) * 1000; nanosleep(&ts, NULL); #else diff --git a/time/unix/timestr.c b/time/unix/timestr.c index f74febac1..9817ecc44 100644 --- a/time/unix/timestr.c +++ b/time/unix/timestr.c @@ -129,7 +129,7 @@ apr_status_t apr_ctime(char *date_str, apr_time_t t) return APR_SUCCESS; } -apr_status_t apr_strftime(char *s, apr_size_t *retsize, apr_size_t max, +apr_status_t apr_strftime(char *s, apr_size_t *retsize, apr_size_t max, const char *format, apr_time_exp_t *xt) { struct tm tm; diff --git a/time/win32/time.c b/time/win32/time.c index e0ac4738b..4000a3ef3 100644 --- a/time/win32/time.c +++ b/time/win32/time.c @@ -79,7 +79,7 @@ static void SystemTimeToAprExpTime(apr_time_exp_t *xt, SYSTEMTIME *tm) xt->tm_yday++; } -APR_DECLARE(apr_status_t) apr_time_ansi_put(apr_time_t *result, +APR_DECLARE(apr_status_t) apr_time_ansi_put(apr_time_t *result, time_t input) { *result = (apr_time_t) input * APR_USEC_PER_SEC; @@ -94,7 +94,7 @@ APR_DECLARE(apr_time_t) apr_time_now(void) GetSystemTimeAsFileTime(&time); FileTimeToAprTime(&aprtime, &time); - return aprtime; + return aprtime; } APR_DECLARE(apr_status_t) apr_time_exp_gmt(apr_time_exp_t *result, @@ -113,8 +113,8 @@ APR_DECLARE(apr_status_t) apr_time_exp_gmt(apr_time_exp_t *result, return APR_SUCCESS; } -APR_DECLARE(apr_status_t) apr_time_exp_tz(apr_time_exp_t *result, - apr_time_t input, +APR_DECLARE(apr_status_t) apr_time_exp_tz(apr_time_exp_t *result, + apr_time_t input, apr_int32_t offs) { FILETIME ft; @@ -159,14 +159,14 @@ APR_DECLARE(apr_status_t) apr_time_exp_lt(apr_time_exp_t *result, /* Recover the resulting time as an apr time and use the - * delta for gmtoff in seconds (and ignore msec rounding) + * delta for gmtoff in seconds (and ignore msec rounding) */ SystemTimeToFileTime(&localst, &localft); FileTimeToAprTime(&localtime, &localft); - result->tm_gmtoff = (int)apr_time_sec(localtime) + result->tm_gmtoff = (int)apr_time_sec(localtime) - (int)apr_time_sec(input); - /* To compute the dst flag, we compare the expected + /* To compute the dst flag, we compare the expected * local (standard) timezone bias to the delta. * [Note, in war time or double daylight time the * resulting tm_isdst is, desireably, 2 hours] @@ -225,7 +225,7 @@ APR_DECLARE(apr_status_t) apr_os_imp_time_get(apr_os_imp_time_t **ostime, return APR_SUCCESS; } -APR_DECLARE(apr_status_t) apr_os_exp_time_get(apr_os_exp_time_t **ostime, +APR_DECLARE(apr_status_t) apr_os_exp_time_get(apr_os_exp_time_t **ostime, apr_time_exp_t *aprexptime) { (*ostime)->wYear = aprexptime->tm_year + 1900; diff --git a/time/win32/timestr.c b/time/win32/timestr.c index 4fbdf825f..4b5978c5d 100644 --- a/time/win32/timestr.c +++ b/time/win32/timestr.c @@ -123,7 +123,7 @@ APR_DECLARE(apr_status_t) apr_ctime(char *date_str, apr_time_t t) static apr_size_t win32_strftime_extra(char *s, size_t max, const char *format, - const struct tm *tm) + const struct tm *tm) { /* If the new format string is bigger than max, the result string won't fit * anyway. If format strings are added, made sure the padding below is |