From 994fb9c1f0202b583197d8d60ce9176bf9cf2618 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Wed, 8 Oct 2003 13:33:01 +0000 Subject: [PATCH] Cleanup --- lib/silcclient/command_reply.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/silcclient/command_reply.h b/lib/silcclient/command_reply.h index 9c6ca6b2..4eb8ca18 100644 --- a/lib/silcclient/command_reply.h +++ b/lib/silcclient/command_reply.h @@ -54,26 +54,26 @@ struct SilcClientCommandReplyContextStruct { /* Command reply operation that is called at the end of all command replys. Usage: COMMAND_REPLY((ARGS, argument1, argument2, etc...)), */ #define COMMAND_REPLY(args) cmd->client->internal->ops->command_reply args -#define SILC_ARGS cmd->client, cmd->sock->user_data, \ +#define SILC_ARGS cmd->client, cmd->sock->user_data, \ cmd->payload, TRUE, silc_command_get(cmd->payload), cmd->status /* Error reply to application. Usage: COMMAND_REPLY_ERROR; */ -#define COMMAND_REPLY_ERROR(error) \ -do { \ - if (cmd->status == SILC_STATUS_OK) { \ - cmd->client->internal->ops-> \ +#define COMMAND_REPLY_ERROR(error) \ +do { \ + if (cmd->status == SILC_STATUS_OK) { \ + cmd->client->internal->ops-> \ command_reply(cmd->client, cmd->sock->user_data, cmd->payload, \ - FALSE, silc_command_get(cmd->payload), error); \ - } else { \ - void *arg1 = NULL, *arg2 = NULL; \ - silc_status_get_args(cmd->status, cmd->args, &arg1, &arg2); \ - cmd->client->internal->ops-> \ + FALSE, silc_command_get(cmd->payload), error); \ + } else { \ + void *arg1 = NULL, *arg2 = NULL; \ + silc_status_get_args(cmd->status, cmd->args, &arg1, &arg2); \ + cmd->client->internal->ops-> \ command_reply(cmd->client, cmd->sock->user_data, cmd->payload, \ - FALSE, silc_command_get(cmd->payload), cmd->status, \ - arg1, arg2); \ - silc_free(arg1); \ - silc_free(arg2); \ - } \ + FALSE, silc_command_get(cmd->payload), cmd->status, \ + arg1, arg2); \ + silc_free(arg1); \ + silc_free(arg2); \ + } \ } while(0) /* Macro used to declare command reply functions */ -- 2.24.0