# HG changeset patch # User Matti Hamalainen # Date 1245451509 -10800 # Node ID 69f9c46e4a9472acb579ddcbdd927d0ac93f760e # Parent 6e47426efb6a7a512291a1d087dc52183fd58822 Constify. diff -r 6e47426efb6a -r 69f9c46e4a94 libnnchat.c --- 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);