mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
darn ansi C.....
svn path=/icecast/trunk/icecast/; revision=8202
This commit is contained in:
parent
acbef39c57
commit
d7a30dc0cf
@ -431,12 +431,12 @@ int fserve_client_create(client_t *httpclient, char *path)
|
|||||||
char currenttime[50];
|
char currenttime[50];
|
||||||
time_t now;
|
time_t now;
|
||||||
int strflen;
|
int strflen;
|
||||||
time(&now);
|
|
||||||
struct tm result;
|
struct tm result;
|
||||||
int64_t endpos = rangenumber+new_content_len-1;
|
int64_t endpos = rangenumber+new_content_len-1;
|
||||||
if (endpos < 0) {
|
if (endpos < 0) {
|
||||||
endpos = 0;
|
endpos = 0;
|
||||||
}
|
}
|
||||||
|
time(&now);
|
||||||
strflen = strftime(currenttime, 50, "%a, %d-%b-%Y %X GMT",
|
strflen = strftime(currenttime, 50, "%a, %d-%b-%Y %X GMT",
|
||||||
gmtime_r(&now, &result));
|
gmtime_r(&now, &result));
|
||||||
httpclient->respcode = 206;
|
httpclient->respcode = 206;
|
||||||
|
Loading…
Reference in New Issue
Block a user