version 1.19 | | version 1.20 |
---|
| | |
/* | | /* |
* static char *rcsid_image_c = | | * static char *rcsid_image_c = |
* "$Id: image.c,v 1.19 2006/02/09 00:48:36 akirschbaum Exp $"; | | * "$Id: image.c,v 1.20 2006/02/10 23:59:25 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* (needed in client, so that it will know to request that image | | * (needed in client, so that it will know to request that image |
* from the server) | | * from the server) |
*/ | | */ |
int FindFace (char *name, int error) { | | int FindFace (const char *name, int error) { |
struct bmappair *bp, tmp; | | struct bmappair *bp, tmp; |
char *p; | | char *p; |
| | |
if ((p = strchr (name, '\n'))) | | if ((p = strchr (name, '\n'))) |
*p = '\0'; | | *p = '\0'; |
| | |
tmp.name = name; | | tmp.name = (char *)name; |
bp = (struct bmappair *)bsearch | | bp = (struct bmappair *)bsearch |
(&tmp, xbm, nroffiles, sizeof(struct bmappair), (int (*)(const void*, const void*))compar); | | (&tmp, xbm, nroffiles, sizeof(struct bmappair), (int (*)(const void*, const void*))compar); |
| | |