GUACAMOLE-422: Minor style and debug changes.

This commit is contained in:
Nick Couchman 2019-04-27 21:37:26 -04:00
parent 93a240b8ad
commit bf741a46d6
2 changed files with 4 additions and 4 deletions

View File

@ -720,7 +720,7 @@ int __guac_user_call_opcode_handler(__guac_instruction_handler_mapping* map,
} }
/* If unrecognized, log and ignore */ /* 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); opcode);
return 0; return 0;

View File

@ -299,8 +299,8 @@ int guac_user_handle_connection(guac_user* user, int usec_timeout) {
user->info.timezone = NULL; user->info.timezone = NULL;
/* Count number of arguments. */ /* Count number of arguments. */
int numArgs; int num_args;
for (numArgs = 0; client->args[numArgs] != NULL; numArgs++); for (num_args = 0; client->args[num_args] != NULL; num_args++);
/* Send args */ /* Send args */
if (guac_protocol_send_args(socket, client->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); guac_socket_flush(socket);
/* Verify argument count. */ /* 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 " guac_client_log(client, GUAC_LOG_ERROR, "Client did not return the "
"expected number of arguments."); "expected number of arguments.");
return 1; return 1;