diff options
-rw-r--r-- | clients/zctl/zctl.c | 11 |
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 *)¬ice, sizeof(notice)); + (void) memset((char *)¬ice, 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 *)¬ice, sizeof(notice)); + (void) memset((char *)¬ice, 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) { |