nuttx/net/local
chao an 6a4495e3b7 net/local: fix build warning on GCC 12.2.0
In file included from local/local_fifo.c:25:
In function ‘local_format_name’,
    inlined from ‘local_hd_name’ at local/local_fifo.c:132:3,
    inlined from ‘local_open_receiver’ at local/local_fifo.c:661:3:
local/local_fifo.c:77:16: warning: ‘%s’ directive output may be truncated writing up to 107 bytes into a region of size 100 [-Wformat-truncation=]
   77 |                CONFIG_NET_LOCAL_VFS_PATH "/%s%s", inpath, suffix);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~
local/local_fifo.c: In function ‘local_open_receiver’:
local/local_fifo.c:82:44: note: format string is defined here
   82 |                CONFIG_NET_LOCAL_VFS_PATH "/%s%s%" PRIx32,
      |                                            ^~
In function ‘local_format_name’,
    inlined from ‘local_hd_name’ at local/local_fifo.c:132:3,
    inlined from ‘local_open_receiver’ at local/local_fifo.c:661:3:
local/local_fifo.c:76:7: note: ‘snprintf’ output between 12 and 119 bytes into a destination of size 109
   76 |       snprintf(outpath, LOCAL_FULLPATH_LEN - 1,
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   77 |                CONFIG_NET_LOCAL_VFS_PATH "/%s%s", inpath, suffix);
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-06 13:19:21 +08:00
..
Kconfig net/local: rename NET_LOCAL_VFS_PATH to follow linux 2023-01-04 20:50:38 +08:00
local_accept.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
local_bind.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
local_conn.c sched/getpid: replace syscall getpid/tid/ppid() to kernel version 2023-02-02 10:33:01 +08:00
local_connect.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
local_fifo.c net/local: fix build warning on GCC 12.2.0 2023-07-06 13:19:21 +08:00
local_listen.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
local_netpoll.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
local_recvmsg.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
local_recvutils.c net/local: Return -EINVAL if the address length passed to local_bind is too small 2022-12-18 20:12:30 +02:00
local_release.c libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
local_sendmsg.c net/semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
local_sendpacket.c
local_sockif.c Remove #warning if the code already return the error code or value 2023-05-18 15:44:28 +03:00
local.h net/local: Return the unblock handle correctly in local_accept 2023-03-09 09:17:19 +01:00
Make.defs