mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-23 11:44:53 +00:00
Squash warnings
This commit is contained in:
1 parent
3d78b14deb
commit
ba02937ec6
3 files changed
+5
-5
No files matched your search
+2
-2
@@ -587,7 +587,6 @@ static void printdirentry(const char *name, void *userdata) {
|
||||
struct tm tm;
|
||||
if (flags & MG_FS_DIR) {
|
||||
snprintf(sz, sizeof(sz), "%s", "[DIR]");
|
||||
size = -1;
|
||||
} else if (size < 1024) {
|
||||
snprintf(sz, sizeof(sz), "%d", (int) size);
|
||||
} else if (size < 0x100000) {
|
||||
@@ -602,7 +601,8 @@ static void printdirentry(const char *name, void *userdata) {
|
||||
mg_printf(d->c,
|
||||
" <tr><td><a href=\"%.*s%s\">%s%s</a></td>"
|
||||
"<td name=%lu>%s</td><td name=" MG_INT64_FMT ">%s</td></tr>\n",
|
||||
n, path, slash, name, slash, (unsigned long) t, mod, size, sz);
|
||||
n, path, slash, name, slash, (unsigned long) t, mod,
|
||||
flags & MG_FS_DIR ? (int64_t) -1 : (int64_t) size, sz);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user