summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1993-11-19 10:41:16 +0000
committerGravatar Richard Basch <probe@mit.edu>1993-11-19 10:41:16 +0000
commit9784c191facb39dd6b0f3ecbb531f96b912aba0c (patch)
tree083c1a282eadedb2b6670dd6d97b7c654d225f74 /clients
parent0c62184017e3ca5367f7034e7677032690eb4991 (diff)
Change index to strchr, bzero to memset [ANSI]
Diffstat (limited to 'clients')
-rw-r--r--clients/xzwrite/zephyr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/clients/xzwrite/zephyr.c b/clients/xzwrite/zephyr.c
index d9b1a5d..40d9958 100644
--- a/clients/xzwrite/zephyr.c
+++ b/clients/xzwrite/zephyr.c
@@ -70,7 +70,7 @@ int zeph_locateable(user)
char buf[BUFSIZ];
int n;
- if (index(user, '@') == NULL)
+ if (strchr(user, '@') == NULL)
sprintf(buf, "%s@%s", user, ZGetRealm());
ZLocateUser(buf, &n, ZAUTH);
return (!! n);
@@ -96,7 +96,7 @@ void zeph_subto_logins(users, num)
name = (char *) Malloc(strlen(users[c])+rlen+2,
"while subscribing to login, ", users[c],
NULL);
- if (index(users[c], '@'))
+ if (strchr(users[c], '@'))
sprintf(name, "%s", users[c]);
else
sprintf(name, "%s@%s", users[c], realm);
@@ -135,7 +135,7 @@ int zeph_send_message(dest, msg)
NULL);
sprintf(sig_msg, "%s%c%s", defs.signature, '\0', msg);
- _BZERO((char *) &notice, sizeof(ZNotice_t));
+ (void) memset((char *) &notice, 0, sizeof(ZNotice_t));
notice.z_kind = ACKED;
notice.z_class = dest->zclass;
notice.z_class_inst = dest->zinst;
@@ -170,7 +170,7 @@ int zeph_ping(dest)
{
ZNotice_t notice;
- _BZERO((char *) &notice, sizeof(ZNotice_t));
+ (void) memset((char *) &notice, 0, sizeof(ZNotice_t));
notice.z_kind = ACKED;
notice.z_class = dest->zclass;
notice.z_class_inst = dest->zinst;
@@ -186,7 +186,7 @@ int zeph_pong(dest)
{
ZNotice_t notice;
- _BZERO((char *) &notice, sizeof(ZNotice_t));
+ (void) memset((char *) &notice, 0, sizeof(ZNotice_t));
notice.z_kind = ACKED;
notice.z_class = dest->zclass;
notice.z_class_inst = dest->zinst;