diff options
author | Richard Basch <probe@mit.edu> | 1993-09-24 12:21:25 +0000 |
---|---|---|
committer | Richard Basch <probe@mit.edu> | 1993-09-24 12:21:25 +0000 |
commit | 3e8ddd52a76f85f347de704e72fb5196956fdf5d (patch) | |
tree | 494dce1514e658cac329f58a78ec4eb5556d4d48 /lib/ZLocations.c | |
parent | af4412fd5a0bc68e3b2587da10a0e92a9f1b55c6 (diff) |
Replaced bzero with _BZERO macro (defined in <zephyr/zephyr_conf.h>
Replaced rindex() with strrchr() [ANSI]
Diffstat (limited to 'lib/ZLocations.c')
-rw-r--r-- | lib/ZLocations.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ZLocations.c b/lib/ZLocations.c index fa03bf9..536d470 100644 --- a/lib/ZLocations.c +++ b/lib/ZLocations.c @@ -70,7 +70,7 @@ Z_SendLocation(class, opcode, auth, format) struct hostent *hent; short wg_port = ZGetWGPort(); - (void) bzero((char *)¬ice, sizeof(notice)); + (void) _BZERO((char *)¬ice, sizeof(notice)); notice.z_kind = ACKED; notice.z_port = (u_short) ((wg_port == -1) ? 0 : wg_port); notice.z_class = class; @@ -103,7 +103,7 @@ Z_SendLocation(class, opcode, auth, format) #endif /* X11 */ ttyp = ttyname(0); if (ttyp) { - bptr[2] = rindex(ttyp, '/'); + bptr[2] = strrchr(ttyp, '/'); if (bptr[2]) bptr[2]++; else |