aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd_indexcgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/httpd_indexcgi.c')
-rw-r--r--networking/httpd_indexcgi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/networking/httpd_indexcgi.c b/networking/httpd_indexcgi.c
index 6663a22ad..9fa7c7481 100644
--- a/networking/httpd_indexcgi.c
+++ b/networking/httpd_indexcgi.c
@@ -291,7 +291,7 @@ int main(int argc, char *argv[])
291 size_total = 0; 291 size_total = 0;
292 cdir = dir_list; 292 cdir = dir_list;
293 while (dir_list_count--) { 293 while (dir_list_count--) {
294 struct tm *tm; 294 struct tm *ptm;
295 295
296 if (S_ISDIR(cdir->dl_mode)) { 296 if (S_ISDIR(cdir->dl_mode)) {
297 count_dirs++; 297 count_dirs++;
@@ -316,12 +316,12 @@ int main(int argc, char *argv[])
316 fmt_ull(cdir->dl_size); 316 fmt_ull(cdir->dl_size);
317 fmt_str("<td class=dt>"); 317 fmt_str("<td class=dt>");
318 tm = gmtime(&cdir->dl_mtime); 318 tm = gmtime(&cdir->dl_mtime);
319 fmt_04u(1900 + tm->tm_year); *dst++ = '-'; 319 fmt_04u(1900 + ptm->tm_year); *dst++ = '-';
320 fmt_02u(tm->tm_mon + 1); *dst++ = '-'; 320 fmt_02u(ptm->tm_mon + 1); *dst++ = '-';
321 fmt_02u(tm->tm_mday); *dst++ = ' '; 321 fmt_02u(ptm->tm_mday); *dst++ = ' ';
322 fmt_02u(tm->tm_hour); *dst++ = ':'; 322 fmt_02u(ptm->tm_hour); *dst++ = ':';
323 fmt_02u(tm->tm_min); *dst++ = ':'; 323 fmt_02u(ptm->tm_min); *dst++ = ':';
324 fmt_02u(tm->tm_sec); 324 fmt_02u(ptm->tm_sec);
325 *dst++ = '\n'; 325 *dst++ = '\n';
326 326
327 odd = 1 - odd; 327 odd = 1 - odd;