nuttx/net/local
chao an 8e146590a9 net/local: unified formatting name function
fix build warning on GCC 12.2.0

In file included from local/local_fifo.c:25:
In function 'local_hd_name',
    inlined from 'local_open_receiver' at local/local_fifo.c:593:3:
local/local_fifo.c:128:12: warning: '%s' directive output may be truncated writing up to 107 bytes into a region of size 97 [-Wformat-truncation=]
  128 |            CONFIG_NET_LOCAL_VFS_PATH "/%s" LOCAL_HD_SUFFIX, inpath);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
local/local_fifo.c: In function 'local_open_receiver':
local/local_fifo.c:128:40: note: format string is defined here
  128 |            CONFIG_NET_LOCAL_VFS_PATH "/%s" LOCAL_HD_SUFFIX, inpath);
      |                                        ^~
In function 'local_hd_name',
    inlined from 'local_open_receiver' at local/local_fifo.c:593:3:
local/local_fifo.c:127:3: note: 'snprintf' output between 15 and 122 bytes into a destination of size 109
  127 |   snprintf(outpath, LOCAL_FULLPATH_LEN - 1,
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  128 |            CONFIG_NET_LOCAL_VFS_PATH "/%s" LOCAL_HD_SUFFIX, inpath);
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-11 00:53:57 +08:00
..
Kconfig net/local: Rename NET_LOCAL_PATH_PREFIX to NET_LOCAL_VFS_PATH 2022-02-06 19:42:00 +01:00
local_accept.c libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
local_bind.c Replace all strncpy with strlcpy for safety 2022-08-25 13:38:36 +08:00
local_conn.c libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
local_connect.c libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
local_fifo.c net/local: unified formatting name function 2022-10-11 00:53:57 +08:00
local_listen.c libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
local_netpoll.c poll: add poll_notify() api and call it in all drivers 2022-09-26 12:06:32 +08:00
local_recvmsg.c net/local: remove dead code 2022-09-27 21:31:48 +08:00
local_recvutils.c net/local: Remove the sync preamble from datagram 2022-08-10 09:50:25 +03:00
local_release.c libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
local_sendmsg.c Remove the unnessary empty line after label 2022-09-30 17:54:56 +02:00
local_sendpacket.c net/local: Remove the sync preamble from datagram 2022-08-10 09:50:25 +03:00
local_sockif.c net: Align the prototype of sock_intf_s::si_ioctl with file_operations::ioctl 2022-09-06 22:46:37 +08:00
local.h libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
Make.defs net/socket: move si_send/recv into sendmsg/recvmsg 2021-03-05 04:46:13 -08:00