zephyr/subsys/shell/backends
Jukka Rissanen e158c1729a shell: mqtt: Avoid using POSIX function names
This commit fixes this error seen in CI so that things
work even if CONFIG_POSIX_API is enabled.

subsys/shell/backends/shell_mqtt.c:727:12: error:
  conflicting types for 'write'; have
 'int(const struct shell_transport *, const void *, size_t,  size_t *)'
  727 | static int write(const struct shell_transport *transport,
                         const void *data, size_t length)

include/zephyr/posix/unistd.h:230:9: note: previous declaration
 of 'write' with type
 'ssize_t(int,  const void *, size_t)'
  230 | ssize_t write(int file, const void *buffer, size_t count);

subsys/shell/backends/shell_mqtt.c:787:12: error:
 conflicting types for 'read'; have
 'int(const struct shell_transport *, void *, size_t,  size_t *)'
  787 | static int read(const struct shell_transport *transport,
                        void *data, size_t length, size_t *cnt)

include/zephyr/posix/unistd.h:231:9: note: previous declaration
 of 'read' with type
 'ssize_t(int,  void *, size_t)'
  231 | ssize_t read(int file, void *buffer, size_t count);

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-27 13:40:13 -05:00
..
CMakeLists.txt shell: backends: Add RPMsg shell backend 2024-03-01 14:10:24 +01:00
Kconfig.backends net: telnet: Switch TELNET shell backend to use sockets 2024-03-11 15:09:32 -05:00
shell_dummy.c shell: fix MISRA 5.7 violations on struct shell 2023-04-14 12:21:08 +02:00
shell_mqtt.c shell: mqtt: Avoid using POSIX function names 2024-03-27 13:40:13 -05:00
shell_rpmsg.c shell: backends: Add RPMsg shell backend 2024-03-01 14:10:24 +01:00
shell_rtt.c shell: backends: add SHELL_BACKEND_RTT_BUFFER option 2023-04-13 11:43:28 +02:00
shell_telnet_protocol.h net: telnet: Fix spelling in command defines 2024-03-11 15:09:32 -05:00
shell_telnet.c net: telnet: Fix spelling in command defines 2024-03-11 15:09:32 -05:00
shell_uart.c drivers: serial: uart_async_rx: Add return value to consume function 2024-03-26 10:46:02 -04:00