From: michael Date: Mon, 8 Jun 2015 20:46:07 +0000 (+0000) Subject: - libopm/src/libopm.c:libopm_do_read(): constification X-Git-Tag: 1.0.8~48 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=53302ae5844d59548b70c14f01f9c645feb0736b;p=hopm.git - libopm/src/libopm.c:libopm_do_read(): constification git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@6074 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/src/libopm/src/libopm.c b/src/libopm/src/libopm.c index 3136827..8a7b239 100644 --- a/src/libopm/src/libopm.c +++ b/src/libopm/src/libopm.c @@ -1143,14 +1143,13 @@ libopm_do_read(OPM_T *scanner, OPM_SCAN_T *scan, OPM_CONNECTION_T *conn) { OPM_LIST_T *list; OPM_NODE_T *node; - char *target_string; /* Check readbuf against target strings */ list = (OPM_LIST_T *)libopm_config(scanner->config, OPM_CONFIG_TARGET_STRING); LIST_FOREACH(node, list->head) { - target_string = node->data; + const char *target_string = node->data; if (strstr(conn->readbuf, target_string)) {