From: michael Date: Sun, 14 Jun 2015 12:24:55 +0000 (+0000) Subject: - opercmd.c:command_create(): rename variable to be consistent with other functions X-Git-Tag: 1.0.8~23 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=51b33c6cab1e8017b41c27bc4124ce9a4cb05e8c;p=hopm.git - opercmd.c:command_create(): rename variable to be consistent with other functions git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@6145 82007160-df01-0410-b94d-b575c5fd34c7 --- 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