- opercmd.c:command_create(): rename variable to be consistent with other functions
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Sun, 14 Jun 2015 12:24:31 +0000 (12:24 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Sun, 14 Jun 2015 12:24:31 +0000 (12:24 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6144 82007160-df01-0410-b94d-b575c5fd34c7

src/opercmd.c

index 020d3dc76a177dbea717d6efcbef58a5e9d63235..09991727616196a6a7b59515068e76de6454d696 100644 (file)
@@ -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