diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-09 19:10:49 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-09 19:10:49 +0100 |
commit | dc698bb038756a926aaa529bda1b939eab2c1676 (patch) | |
tree | 4084a40897d9d81816228935a1398e80dd4b173b /networking/httpd_indexcgi.c | |
parent | 0681137972dc89b5003b0415e09184c0ecf1c875 (diff) | |
download | busybox-w32-dc698bb038756a926aaa529bda1b939eab2c1676.tar.gz busybox-w32-dc698bb038756a926aaa529bda1b939eab2c1676.tar.bz2 busybox-w32-dc698bb038756a926aaa529bda1b939eab2c1676.zip |
*: make it easier to distinquish "struct tm", pointer to one, etc
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/httpd_indexcgi.c')
-rw-r--r-- | networking/httpd_indexcgi.c | 14 |
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; |