mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Fixed compiler warning
SVN revision: 2085
This commit is contained in:
parent
6b9d7b3471
commit
fb04d24270
@ -7964,7 +7964,7 @@ int exist_file(char *file_name)
|
|||||||
void send_file_direct(char *file_name)
|
void send_file_direct(char *file_name)
|
||||||
{
|
{
|
||||||
int fh, i, length, delta;
|
int fh, i, length, delta;
|
||||||
char str[MAX_PATH_LENGTH], charset[80];
|
char str[MAX_PATH_LENGTH], charset[80], format[80];
|
||||||
time_t now;
|
time_t now;
|
||||||
struct tm *gmt;
|
struct tm *gmt;
|
||||||
|
|
||||||
@ -7986,7 +7986,8 @@ void send_file_direct(char *file_name)
|
|||||||
time(&now);
|
time(&now);
|
||||||
now += (int) (3600 * 24);
|
now += (int) (3600 * 24);
|
||||||
gmt = gmtime(&now);
|
gmt = gmtime(&now);
|
||||||
strftime(str, sizeof(str), "%A, %d-%b-%y %H:%M:%S GMT", gmt);
|
strcpy(format, "%A, %d-%b-%y %H:%M:%S GMT");
|
||||||
|
strftime(str, sizeof(str), format, gmt);
|
||||||
rsprintf("Expires: %s\r\n", str);
|
rsprintf("Expires: %s\r\n", str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user