--- deliantra/server/common/image.c 2006/02/03 07:11:30 1.1 +++ deliantra/server/common/image.c 2006/02/22 18:01:18 1.1.1.2 @@ -107,10 +107,10 @@ "khaki" /* 12 */ }; -static int compar (struct bmappair *a, struct bmappair *b) { +static int compar (const struct bmappair *a, const struct bmappair *b) { return strcmp (a->name, b->name); } -static int compar_smooth (struct smoothing *a, struct smoothing *b) { +static int compar_smooth (const struct smoothing *a, const struct smoothing *b) { if (a->idid) return -1; if (b->idid) @@ -319,14 +319,14 @@ * (needed in client, so that it will know to request that image * from the server) */ -int FindFace (char *name, int error) { +int FindFace (const char *name, int error) { struct bmappair *bp, tmp; char *p; if ((p = strchr (name, '\n'))) *p = '\0'; - tmp.name = name; + tmp.name = (char *)name; bp = (struct bmappair *)bsearch (&tmp, xbm, nroffiles, sizeof(struct bmappair), (int (*)(const void*, const void*))compar);