Fix compilation warnings in wsssht.c

- Fixed unused parameter warnings in run_bridge_mode and run_script_mode functions
- Added parameter usage in debug output to eliminate compiler warnings
- Compilation now clean with no warnings or errors
parent 4a64994a
No preview for this file type
......@@ -277,7 +277,8 @@ int parse_args(int argc, char *argv[], wsssh_config_t *config, int *remaining_ar
int run_bridge_mode(wsssh_config_t *config, const char *client_id, const char *wssshd_host, int wssshd_port) {
// Bridge mode: JSON messages to/from stdin/stdout
if (config->debug) {
printf("[DEBUG] Starting bridge mode\n");
printf("[DEBUG] Starting bridge mode with client_id=%s, host=%s, port=%d\n",
client_id, wssshd_host, wssshd_port);
fflush(stdout);
}
......@@ -294,7 +295,8 @@ int run_bridge_mode(wsssh_config_t *config, const char *client_id, const char *w
int run_script_mode(wsssh_config_t *config, const char *client_id, const char *wssshd_host, int wssshd_port) {
// Script mode: JSON protocol for scripting
if (config->debug) {
printf("[DEBUG] Starting script mode\n");
printf("[DEBUG] Starting script mode with client_id=%s, host=%s, port=%d\n",
client_id, wssshd_host, wssshd_port);
fflush(stdout);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment