File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 12
12
13
13
#include " ../../src/Debug/debugger.h"
14
14
#include " ../../src/Utils/macros.h"
15
- #include " ../../src/WARDuino.h"
16
15
#include " ../../tests/integration/wasm_tests.h"
17
16
18
17
// Constants
@@ -47,6 +46,9 @@ void print_help() {
47
46
" binaries (default: wat2wasm)\n " );
48
47
fprintf (stdout,
49
48
" --file Wasm file (module) to load and execute\n " );
49
+ fprintf (stdout,
50
+ " --no-socket Run without socket "
51
+ " (default: false)\n " );
50
52
}
51
53
52
54
Module *load (WARDuino wac, const char *file_name, Options opt) {
@@ -116,7 +118,7 @@ void bindSocketToAddress(int socket_fd, struct sockaddr_in address) {
116
118
}
117
119
118
120
struct sockaddr_in createAddress (int port) {
119
- struct sockaddr_in address;
121
+ struct sockaddr_in address{} ;
120
122
address.sin_family = AF_INET;
121
123
address.sin_addr .s_addr = INADDR_ANY;
122
124
address.sin_port = htons (port);
You can’t perform that action at this time.
0 commit comments