zephyr/samples/net/sockets/echo_server/src
Jukka Rissanen 6fb34733b5 samples: net: echo_server: Avoid warning about truncated writing
The truncation is not possible in practice but add suitable cast to
avoid the warning.

samples/net/sockets/echo_server/src/tcp.c:297:54: warning:
 ‘%d’ directive output may be truncated writing between 1 and 10 bytes
 into a region of size 5 [-Wformat-truncation=]
  297 |               snprintk(name, sizeof(name), "tcp4[%d]", slot);
      |                                             ^~~~~~~~~~

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-10-25 12:50:54 -05:00
..
ws_console
ca.der
certificate.h
common.h samples: net: echo-server: Add USB CDC NCM support 2024-10-17 15:38:00 -04:00
dummy_psk.h
echo-apps-cert.der
echo-apps-key.der
echo-server.c
server_privkey.der
server.der
tcp.c samples: net: echo_server: Avoid warning about truncated writing 2024-10-25 12:50:54 -05:00
tunnel.c
udp.c
usb.c samples: net: echo-server: Add USB CDC NCM support 2024-10-17 15:38:00 -04:00
vlan.c