From 0bcb95c5617e84d1e43e3f58639065c204206c48 Mon Sep 17 00:00:00 2001 From: avolkov Date: Tue, 24 Jan 2006 05:21:22 +0000 Subject: [PATCH] Getting rid of 'const' warnings git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2229 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/planets/pstarmap.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sc2/src/sc2code/planets/pstarmap.c b/sc2/src/sc2code/planets/pstarmap.c index 194496e5c..1f3c5986c 100644 --- a/sc2/src/sc2code/planets/pstarmap.c +++ b/sc2/src/sc2code/planets/pstarmap.c @@ -801,8 +801,8 @@ typedef struct starsearch_state BOOLEAN SingleClust; BOOLEAN SingleMatch; UNICODE Buffer[STAR_SEARCH_BUFSIZE]; - UNICODE *Prefix; - UNICODE *Cluster; + const UNICODE *Prefix; + const UNICODE *Cluster; int PrefixLen; int ClusterLen; int ClusterPos; @@ -858,7 +858,8 @@ SplitStarName (STAR_SEARCH_STATE *pSS) pSS->ClusterPos = 0; // skip leading space - for (next = buf; *next != '\0' && getCharFromString (&next) == ' '; + for (next = buf; *next != '\0' && + getCharFromString ((const UNICODE **)&next) == ' '; buf = next) ; if (*buf == '\0') @@ -869,14 +870,16 @@ SplitStarName (STAR_SEARCH_STATE *pSS) pSS->Prefix = buf; // See if player gave a prefix - for (buf = next; *next != '\0' && getCharFromString (&next) != ' '; + for (buf = next; *next != '\0' && + getCharFromString ((const UNICODE **)&next) != ' '; buf = next) ; if (*buf != '\0') { // found possibly separating ' ' sep = buf; // skip separating space - for (buf = next; *next != '\0' && getCharFromString (&next) == ' '; + for (buf = next; *next != '\0' && + getCharFromString ((const UNICODE **)&next) == ' '; buf = next) ; }