diff options
author | Denys Vlasenko | 2010-01-09 19:10:49 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-01-09 19:10:49 +0100 |
commit | dc698bb038756a926aaa529bda1b939eab2c1676 (patch) | |
tree | 4084a40897d9d81816228935a1398e80dd4b173b /networking/httpd_indexcgi.c | |
parent | 0681137972dc89b5003b0415e09184c0ecf1c875 (diff) | |
download | busybox-dc698bb038756a926aaa529bda1b939eab2c1676.zip busybox-dc698bb038756a926aaa529bda1b939eab2c1676.tar.gz |
*: 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 6663a22..9fa7c74 100644 --- a/networking/httpd_indexcgi.c +++ b/networking/httpd_indexcgi.c @@ -291,7 +291,7 @@ int main(int argc, char *argv[]) size_total = 0; cdir = dir_list; while (dir_list_count--) { - struct tm *tm; + struct tm *ptm; if (S_ISDIR(cdir->dl_mode)) { count_dirs++; @@ -316,12 +316,12 @@ int main(int argc, char *argv[]) fmt_ull(cdir->dl_size); fmt_str("<td class=dt>"); tm = gmtime(&cdir->dl_mtime); - fmt_04u(1900 + tm->tm_year); *dst++ = '-'; - fmt_02u(tm->tm_mon + 1); *dst++ = '-'; - fmt_02u(tm->tm_mday); *dst++ = ' '; - fmt_02u(tm->tm_hour); *dst++ = ':'; - fmt_02u(tm->tm_min); *dst++ = ':'; - fmt_02u(tm->tm_sec); + fmt_04u(1900 + ptm->tm_year); *dst++ = '-'; + fmt_02u(ptm->tm_mon + 1); *dst++ = '-'; + fmt_02u(ptm->tm_mday); *dst++ = ' '; + fmt_02u(ptm->tm_hour); *dst++ = ':'; + fmt_02u(ptm->tm_min); *dst++ = ':'; + fmt_02u(ptm->tm_sec); *dst++ = '\n'; odd = 1 - odd; |