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/win32 | |
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/win32')
-rw-r--r-- | time/win32/time.c | 16 | ||||
-rw-r--r-- | time/win32/timestr.c | 2 |
2 files changed, 9 insertions, 9 deletions
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 |