diff options
author | Sean Bright <sean@malleable.com> | 2008-08-10 19:35:50 +0000 |
---|---|---|
committer | Sean Bright <sean@malleable.com> | 2008-08-10 19:35:50 +0000 |
commit | b69c8e6ab5b5d20a964d67e93cda8dc07da61fa4 (patch) | |
tree | b4d1b3f66cf87177cb1c8a8ee596b6a9458f8f6c /main/http.c | |
parent | 3ffb39833b25a02108214d7584733bc6b9c334df (diff) |
Another big chunk of changes from the RSW branch. Bunch of stuff from main/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@137082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/http.c')
-rw-r--r-- | main/http.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/http.c b/main/http.c index d08b17fa4..7601158bb 100644 --- a/main/http.c +++ b/main/http.c @@ -159,7 +159,7 @@ static struct ast_str *static_callback(struct ast_tcptls_session_instance *ser, struct stat st; int len; int fd; - struct timeval tv = ast_tvnow(); + struct timeval now = ast_tvnow(); char buf[256]; struct ast_tm tm; @@ -207,7 +207,7 @@ static struct ast_str *static_callback(struct ast_tcptls_session_instance *ser, goto out403; } - ast_strftime(buf, sizeof(buf), "%a, %d %b %Y %H:%M:%S %Z", ast_localtime(&tv, &tm, "GMT")); + ast_strftime(buf, sizeof(buf), "%a, %d %b %Y %H:%M:%S %Z", ast_localtime(&now, &tm, "GMT")); fprintf(ser->f, "HTTP/1.1 200 OK\r\n" "Server: Asterisk/%s\r\n" "Date: %s\r\n" @@ -734,11 +734,11 @@ static void *httpd_helper_thread(void *data) } if (out) { - struct timeval tv = ast_tvnow(); + struct timeval now = ast_tvnow(); char timebuf[256]; struct ast_tm tm; - ast_strftime(timebuf, sizeof(timebuf), "%a, %d %b %Y %H:%M:%S %Z", ast_localtime(&tv, &tm, "GMT")); + ast_strftime(timebuf, sizeof(timebuf), "%a, %d %b %Y %H:%M:%S %Z", ast_localtime(&now, &tm, "GMT")); fprintf(ser->f, "HTTP/1.1 %d %s\r\n" "Server: Asterisk/%s\r\n" |