Mercurial > hg > nnchat
changeset 95:69f9c46e4a94
Constify.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 20 Jun 2009 01:45:09 +0300 |
parents | 6e47426efb6a |
children | 7c9538e71c89 |
files | libnnchat.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libnnchat.c Thu May 07 06:14:21 2009 +0300 +++ b/libnnchat.c Sat Jun 20 01:45:09 2009 +0300 @@ -12,12 +12,12 @@ } html_entity_t; -html_entity_t HTMLEntities[] = { +static const html_entity_t HTMLEntities[] = { { '<', "<" }, { '>', ">" }, }; -const int numHTMLEntities = (sizeof(HTMLEntities) / sizeof(HTMLEntities[0])); +static const int numHTMLEntities = (sizeof(HTMLEntities) / sizeof(HTMLEntities[0])); #ifdef __WIN32 @@ -353,7 +353,7 @@ int i; BOOL found = FALSE; for (i = 0; i < numHTMLEntities; i++) { - html_entity_t *ent = &HTMLEntities[i]; + const html_entity_t *ent = &HTMLEntities[i]; int len = strlen(ent->ent); if (!strncmp(s, ent->ent, len)) { PUSHCHAR(ent->c);