comparison src/os/unix/ngx_time.c @ 517:dadfa78d2270 release-0.1.33

nginx-0.1.33-RELEASE import *) Bugfix: nginx could not be built with the --without-pcre parameter; the bug had appeared in 0.1.29. *) Bugfix: 3, 4, 7, and 8 the "proxy_set_header" directives in one level cause the bus fault on start up. *) Bugfix: the HTTP protocol was specified in the HTTPS redirects. *) Bugfix: if the "rewrite" directive used the captures inside the "if" directive, then the 500 error code was returned.
author Igor Sysoev <igor@sysoev.ru>
date Mon, 23 May 2005 12:07:45 +0000
parents 9b8c906f6e63
children 9c2f3ed7a247
comparison
equal deleted inserted replaced
516:ea9642a65514 517:dadfa78d2270
12 { 12 {
13 #if (NGX_HAVE_LOCALTIME_R) 13 #if (NGX_HAVE_LOCALTIME_R)
14 time_t now; 14 time_t now;
15 15
16 now = ngx_time(); 16 now = ngx_time();
17 localtime_r(&now, tm); 17 (void) localtime_r(&now, tm);
18 18
19 #else 19 #else
20 time_t now; 20 time_t now;
21 ngx_tm_t *t; 21 ngx_tm_t *t;
22 22
35 { 35 {
36 #if (NGX_HAVE_LOCALTIME_R) 36 #if (NGX_HAVE_LOCALTIME_R)
37 time_t now; 37 time_t now;
38 38
39 now = ngx_time(); 39 now = ngx_time();
40 localtime_r(&now, tm); 40 (void) localtime_r(&now, tm);
41 41
42 #else 42 #else
43 time_t now; 43 time_t now;
44 struct tm *t; 44 struct tm *t;
45 45
55 { 55 {
56 #if (NGX_HAVE_LOCALTIME_R) 56 #if (NGX_HAVE_LOCALTIME_R)
57 time_t now; 57 time_t now;
58 58
59 now = ngx_time(); 59 now = ngx_time();
60 gmtime_r(&now, tm); 60 (void) gmtime_r(&now, tm);
61 61
62 #else 62 #else
63 time_t now; 63 time_t now;
64 struct tm *t; 64 struct tm *t;
65 65