Skip to content

Commit 205dc68

Browse files
committed
Fix #46
1 parent 483db07 commit 205dc68

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

platforms/CLI-Emulator/main.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#include "../../src/Debug/debugger.h"
1414
#include "../../src/Utils/macros.h"
15-
#include "../../src/WARDuino.h"
1615
#include "../../tests/integration/wasm_tests.h"
1716

1817
// Constants
@@ -47,6 +46,9 @@ void print_help() {
4746
"binaries (default: wat2wasm)\n");
4847
fprintf(stdout,
4948
" --file Wasm file (module) to load and execute\n");
49+
fprintf(stdout,
50+
" --no-socket Run without socket "
51+
"(default: false)\n");
5052
}
5153

5254
Module *load(WARDuino wac, const char *file_name, Options opt) {
@@ -116,7 +118,7 @@ void bindSocketToAddress(int socket_fd, struct sockaddr_in address) {
116118
}
117119

118120
struct sockaddr_in createAddress(int port) {
119-
struct sockaddr_in address;
121+
struct sockaddr_in address {};
120122
address.sin_family = AF_INET;
121123
address.sin_addr.s_addr = INADDR_ANY;
122124
address.sin_port = htons(port);

0 commit comments

Comments
 (0)