From bf741a46d6fc4de1afc3b013c6094ba9893df881 Mon Sep 17 00:00:00 2001 From: Nick Couchman Date: Sat, 27 Apr 2019 21:37:26 -0400 Subject: [PATCH] GUACAMOLE-422: Minor style and debug changes. --- src/libguac/user-handlers.c | 2 +- src/libguac/user-handshake.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libguac/user-handlers.c b/src/libguac/user-handlers.c index fd8540c5..eeed9bcd 100644 --- a/src/libguac/user-handlers.c +++ b/src/libguac/user-handlers.c @@ -720,7 +720,7 @@ int __guac_user_call_opcode_handler(__guac_instruction_handler_mapping* map, } /* If unrecognized, log and ignore */ - guac_user_log(user, GUAC_LOG_WARNING, "Handler not found for \"%s\"", + guac_user_log(user, GUAC_LOG_DEBUG, "Handler not found for \"%s\"", opcode); return 0; diff --git a/src/libguac/user-handshake.c b/src/libguac/user-handshake.c index a2d8ec4a..89afccdd 100644 --- a/src/libguac/user-handshake.c +++ b/src/libguac/user-handshake.c @@ -299,8 +299,8 @@ int guac_user_handle_connection(guac_user* user, int usec_timeout) { user->info.timezone = NULL; /* Count number of arguments. */ - int numArgs; - for (numArgs = 0; client->args[numArgs] != NULL; numArgs++); + int num_args; + for (num_args = 0; client->args[num_args] != NULL; num_args++); /* Send args */ if (guac_protocol_send_args(socket, client->args) @@ -327,7 +327,7 @@ int guac_user_handle_connection(guac_user* user, int usec_timeout) { guac_socket_flush(socket); /* Verify argument count. */ - if (parser->argc != (numArgs + 1)) { + if (parser->argc != (num_args + 1)) { guac_client_log(client, GUAC_LOG_ERROR, "Client did not return the " "expected number of arguments."); return 1;