summaryrefslogtreecommitdiff
path: root/clients/zctl
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1993-11-19 10:35:30 +0000
committerGravatar Richard Basch <probe@mit.edu>1993-11-19 10:35:30 +0000
commit58b0912674b214ab6fd1db3af99b033ba961b1b6 (patch)
tree1ab6a2785a29323d0e7518368fc2c9e5b0c5ae65 /clients/zctl
parent9c12a79eb80cf380b7905090c26433094a702b44 (diff)
Removed extra #include (done by <zephyr/zephyr.h>)
Changed index to strchr, bzero to memset [ANSI]
Diffstat (limited to 'clients/zctl')
-rw-r--r--clients/zctl/zctl.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/clients/zctl/zctl.c b/clients/zctl/zctl.c
index 3a582de..08d2819 100644
--- a/clients/zctl/zctl.c
+++ b/clients/zctl/zctl.c
@@ -11,9 +11,6 @@
* "mit-copyright.h".
*/
-#ifdef POSIX
-#include <unistd.h>
-#endif
#include <zephyr/zephyr.h>
#include <ss/ss.h>
#include <com_err.h>
@@ -196,7 +193,7 @@ wgc_control(argc,argv)
return;
}
- (void) _BZERO((char *)&notice, sizeof(notice));
+ (void) memset((char *)&notice, 0, sizeof(notice));
notice.z_kind = UNSAFE;
notice.z_port = 0;
notice.z_class = WG_CTL_CLASS;
@@ -239,7 +236,7 @@ hm_control(argc,argv)
return;
}
- (void) _BZERO((char *)&notice, sizeof(notice));
+ (void) memset((char *)&notice, 0, sizeof(notice));
notice.z_kind = HMCTL;
notice.z_port = 0;
notice.z_class = HM_CTL_CLASS;
@@ -692,9 +689,9 @@ load_subs(argc,argv)
if (*subline == '#' || !*subline)
continue;
subline[strlen(subline)-1] = '\0'; /* nuke newline */
- comma = index(subline,',');
+ comma = strchr(subline,',');
if (comma)
- comma2 = index(comma+1,',');
+ comma2 = strchr(comma+1,',');
else
comma2 = 0;
if (!comma || !comma2) {