mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-10 23:15:18 +00:00
netutils/webserver/httpd_dirlist.c: Fix a printf format warning
This commit is contained in:
parent
28296d539d
commit
b4651db64f
1 changed files with 3 additions and 2 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#include <limits.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
|
@ -218,8 +219,8 @@ ssize_t httpd_dirlist(int outfd, FAR struct httpd_fs_file *file)
|
|||
}
|
||||
else
|
||||
{
|
||||
snprintf(size, sizeof(size), "%d",
|
||||
buf.st_size);
|
||||
snprintf(size, sizeof(size), "%jd",
|
||||
(uintmax_t)buf.st_size);
|
||||
|
||||
snprintf(tmp, BUF_SIZE, ENTRY,
|
||||
dent->d_name, "", dent->d_name, "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue