summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1993-11-19 10:41:01 +0000
committerGravatar Richard Basch <probe@mit.edu>1993-11-19 10:41:01 +0000
commit0c62184017e3ca5367f7034e7677032690eb4991 (patch)
tree49cc517f6e0ef6c994ba340e3bb29babf5f1f831 /clients
parent1e794b73196445731fe56c3b5df2db3fe31fce84 (diff)
Change index to strchr [ANSI]
Diffstat (limited to 'clients')
-rw-r--r--clients/xzwrite/logins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/xzwrite/logins.c b/clients/xzwrite/logins.c
index 362d4a6..7f4e17b 100644
--- a/clients/xzwrite/logins.c
+++ b/clients/xzwrite/logins.c
@@ -13,7 +13,7 @@ void logins_deal(notice)
char *newdest;
int d;
- d = distance(notice->z_class_inst, index(notice->z_class_inst, '@'));
+ d = distance(notice->z_class_inst, strchr(notice->z_class_inst, '@'));
newdest = (char *) Malloc(d+1, "while dealing with login/logout notice",
NULL);
strncpy(newdest, notice->z_class_inst, d);
@@ -78,7 +78,7 @@ Boolean login_scan_work(client_data)
if (i >= num)
return True;
- if (index(text[i], ',') || index(text[i], '.')) {
+ if (strchr(text[i], ',') || strchr(text[i], '.')) {
i += 1;
return False; }