summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-02-19 11:45:47 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-02-19 11:45:47 +0000
commit850c0aac1152cfb1d243ae0d8c02f3916636f225 (patch)
tree5f02b89fad36b302222b33a030e9d2b8f225645e
parent1577f0dec611c9b19bc1a1ba511af56ccb9045e0 (diff)
- conf.c:get_oper_name(): constification
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3010 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--src/conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf.c b/src/conf.c
index 4a8dbc0..13f380c 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -1403,7 +1403,7 @@ oper_privs_as_string(const unsigned int port)
const char *
get_oper_name(const struct Client *client_p)
{
- dlink_node *cnode = NULL;
+ const dlink_node *cnode = NULL;
/* +5 for !,@,{,} and null */
static char buffer[NICKLEN + USERLEN + HOSTLEN + HOSTLEN + 5];
@@ -1411,7 +1411,7 @@ get_oper_name(const struct Client *client_p)
{
if ((cnode = client_p->localClient->confs.head))
{
- struct MaskItem *conf = cnode->data;
+ const struct MaskItem *conf = cnode->data;
if (IsConfOperator(conf))
{