From 12cefca85708a2b38447b99419f946d92b0ba76b Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 14 Jun 2015 12:24:31 +0000 Subject: [PATCH] - opercmd.c:command_create(): rename variable to be consistent with other functions git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6144 82007160-df01-0410-b94d-b575c5fd34c7 --- src/opercmd.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/opercmd.c b/src/opercmd.c index 020d3dc..0999172 100644 --- a/src/opercmd.c +++ b/src/opercmd.c @@ -133,18 +133,18 @@ static struct Command * command_create(const struct OperCommandHash *tab, char *param, char *irc_nick, const struct ChannelConf *target) { - struct Command *const ret = xcalloc(sizeof *ret); + struct Command *command = xcalloc(sizeof *command); if (param) - ret->param = xstrdup(param); + command->param = xstrdup(param); - ret->tab = tab; - ret->irc_nick = xstrdup(irc_nick); - ret->target = target; + command->tab = tab; + command->irc_nick = xstrdup(irc_nick); + command->target = target; - time(&ret->added); + time(&command->added); - return ret; + return command; } /* command_free -- 2.30.2