wasm-micro-runtime/core/iwasm/libraries/lib-socket/src/wasi
Jämes Ménétrey 5b10d4e630
socket: Explicit narrowing type cast and add missing static keywords (#1539)
While compiling the file wasi_socket_ext.c with pedantic options (typically
`-Wimplicit-int-conversion` and `-Wmissing-prototypes`), some warnings are raised.

This PR addresses those warnings by adding missing static statements before
functions and explicitly casting a narrowing conversion.

And fix the error handling after calling getpeername.
2022-09-29 22:44:57 +08:00
..
wasi_socket_ext.c socket: Explicit narrowing type cast and add missing static keywords (#1539) 2022-09-29 22:44:57 +08:00