summaryrefslogtreecommitdiff
path: root/xc/lib/font/fc/fserve.c
diff options
context:
space:
mode:
authorgildea <empty>1993-09-22 16:59:16 +0000
committergildea <empty>1993-09-22 16:59:16 +0000
commit3f082889e04babdf7d71bade54a1a926b7cb3b0c (patch)
tree4aa7eae6bb9c2ca872ed9de93a8f93791551ed38 /xc/lib/font/fc/fserve.c
parent669f49df4194f7f10f8b46c7673544e2269a2ced (diff)
rindex,rindex => strchr,strrchr
Diffstat (limited to 'xc/lib/font/fc/fserve.c')
-rw-r--r--xc/lib/font/fc/fserve.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/xc/lib/font/fc/fserve.c b/xc/lib/font/fc/fserve.c
index 4a9b4dc91..2b061fd54 100644
--- a/xc/lib/font/fc/fserve.c
+++ b/xc/lib/font/fc/fserve.c
@@ -1,4 +1,4 @@
-/* $XConsortium: fserve.c,v 1.28 93/09/12 17:42:44 rws Exp $ */
+/* $XConsortium: fserve.c,v 1.29 93/09/20 15:56:46 gildea Exp $ */
/*
* Copyright 1990 Network Computing Devices
*
@@ -177,15 +177,15 @@ fs_send_init_packets(conn)
goto fail;
}
}
- sp = rindex(conn->servername, '/');
+ sp = strrchr(conn->servername, '/');
/* don't get tricked by a non-existant catalogue list */
- if (sp == index(conn->servername, '/')) {
+ if (sp == strchr(conn->servername, '/')) {
/*
* try original name -- this might be an alternate with no catalogues
*/
- sp = rindex(conn->requestedname, '/');
- if (sp == index(conn->requestedname, '/'))
+ sp = strrchr(conn->requestedname, '/');
+ if (sp == strchr(conn->requestedname, '/'))
sp = (char *) 0;
}
if (sp) { /* turn cats into counted list */
@@ -198,7 +198,7 @@ fs_send_init_packets(conn)
}
num_cats = 0;
while (*sp) {
- end = index(sp, CATALOGUE_SEP);
+ end = strchr(sp, CATALOGUE_SEP);
if (!end)
end = sp + strlen(sp);
*cp++ = len = end - sp;