diff options
author | Richard Basch <probe@mit.edu> | 1993-11-19 10:34:39 +0000 |
---|---|---|
committer | Richard Basch <probe@mit.edu> | 1993-11-19 10:34:39 +0000 |
commit | 919065ace58e05c0abeb3aea4d6290430177d989 (patch) | |
tree | b33609694ca2b63ab873bad3bbfe7edfa536a58c /clients | |
parent | 04c5375588977a23555482fa17b5fb07d5a31480 (diff) |
Changed bzero to memset, rindex to strrchr [ANSI]
Diffstat (limited to 'clients')
-rw-r--r-- | clients/zpopnotify/zpopnotify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/zpopnotify/zpopnotify.c b/clients/zpopnotify/zpopnotify.c index 747079a..ee298ad 100644 --- a/clients/zpopnotify/zpopnotify.c +++ b/clients/zpopnotify/zpopnotify.c @@ -70,7 +70,7 @@ main(argc,argv) (void) strcat(mysender,ZGetRealm()); for (i = 1; i < argc; i++) { - (void) _BZERO((char *)¬ice, sizeof(notice)); + (void) memset((char *)¬ice, 0, sizeof(notice)); notice.z_kind = UNSAFE; notice.z_class = MAIL_CLASS; notice.z_class_inst = MAIL_INSTANCE; @@ -79,7 +79,7 @@ main(argc,argv) notice.z_default_format = "From Post Office $1:\n$2"; /* in case it's a mailbox name (pathname), strip to username */ - notice.z_recipient = (char *)rindex(argv[i],'/'); + notice.z_recipient = (char *)strrchr(argv[i],'/'); if (notice.z_recipient) notice.z_recipient++; else |