GUACAMOLE-422: Minor style and debug changes.
This commit is contained in:
parent
93a240b8ad
commit
bf741a46d6
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user