ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/conf.c
(Generate patch)

Comparing ircd-hybrid-8/src/conf.c (file contents):
Revision 1363 by michael, Sun Apr 22 19:15:48 2012 UTC vs.
Revision 1364 by michael, Sun Apr 22 19:28:21 2012 UTC

# Line 2386 | Line 2386 | oper_privs_as_string(const unsigned int
2386   *         "oper" is server name for remote opers
2387   * Side effects: None.
2388   */
2389 < char *
2389 > const char *
2390   get_oper_name(const struct Client *client_p)
2391   {
2392 <  dlink_node *cnode;
2393 <  struct ConfItem *conf;
2394 <  struct AccessItem *aconf;
2395 <
2392 >  dlink_node *cnode = NULL;
2393    /* +5 for !,@,{,} and null */
2394    static char buffer[NICKLEN + USERLEN + HOSTLEN + HOSTLEN + 5];
2395  
2396    if (MyConnect(client_p))
2397    {
2398 <    DLINK_FOREACH(cnode, client_p->localClient->confs.head)
2398 >    if ((cnode = client_p->localClient->confs.head))
2399      {
2400 <      conf = cnode->data;
2401 <      aconf = map_to_conf(conf);
2400 >      struct ConfItem *conf = cnode->data;
2401 >      const struct AccessItem *aconf = map_to_conf(conf);
2402  
2403        if (IsConfOperator(aconf))
2404        {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines