diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-23 13:39:16 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-23 13:39:16 +0200 |
commit | 3fd5c9e58f2d4ce3cdea41a3f37235ef0de57d39 (patch) | |
tree | 52bc0c5112e1267e210d283f0727d692c062ee42 | |
parent | 46eb2370e53c3a1c7eb593ca99c07944c81ec695 (diff) |
fix client compile errors
-rw-r--r-- | client/cmd.cpp | 2 | ||||
-rw-r--r-- | client/rl.cpp | 2 | ||||
-rw-r--r-- | client/sock.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/client/cmd.cpp b/client/cmd.cpp index 10d53e3..062fefa 100644 --- a/client/cmd.cpp +++ b/client/cmd.cpp @@ -28,7 +28,7 @@ void cmd_test(char*) { void cmd_help(char*) { printf("List of available commands:\n"); for (size_t i = 0; i < cmds_length; i++) { - struct cmd cmd = cmds[i]; + cmd_t cmd = cmds[i]; printf(" %-*s", 10, cmd.name); if (cmd.info != NULL) printf(" %s", cmd.info); diff --git a/client/rl.cpp b/client/rl.cpp index f839d96..2e74e5f 100644 --- a/client/rl.cpp +++ b/client/rl.cpp @@ -57,7 +57,7 @@ static char* rl_completion_entries(const char *text, int state) { if (state == 0) i = 0; while (i < cmds_length) { - struct cmd cmd = cmds[i]; + cmd_t cmd = cmds[i]; i++; if (strncmp(text, cmd.name, strlen(text)) == 0) { return strdup(cmd.name); diff --git a/client/sock.cpp b/client/sock.cpp index 3490586..e33a3dc 100644 --- a/client/sock.cpp +++ b/client/sock.cpp @@ -101,7 +101,7 @@ void PBSocket::sock_task() { if (ret > 0) continue; // message read completely! - i2c_recv(input.addr, input.data, input.length); + i2c_recv(input.data, input.length); free(input.data); } |