aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-01-01 04:29:08 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-01-01 04:29:08 +0000
commitc8863d0590c287c85ff9a77aab5d5f52e5b05da6 (patch)
tree5939f674c9904aef7ee3186084c4c7ead0f3766e /usr.sbin
parentc53b0f40f3b3000d37d533f7f32cf4132d057bd3 (diff)
downloadsrc-c8863d0590c287c85ff9a77aab5d5f52e5b05da6.tar.gz
src-c8863d0590c287c85ff9a77aab5d5f52e5b05da6.zip
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/inetd/Makefile1
-rw-r--r--usr.sbin/inetd/inetd.c6
2 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/inetd/Makefile b/usr.sbin/inetd/Makefile
index 3f5b1895d9b0..b8f216970d7f 100644
--- a/usr.sbin/inetd/Makefile
+++ b/usr.sbin/inetd/Makefile
@@ -9,7 +9,6 @@ MAN= inetd.8
MLINKS= inetd.8 inetd.conf.5
SRCS= inetd.c builtins.c
-WARNS?= 3
CFLAGS+= -DLOGIN_CAP
#CFLAGS+= -DSANITY_CHECK
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index fb52ed9faed5..f2e134fc6e14 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -410,7 +410,7 @@ main(int argc, char **argv)
*/
servname = (hostname == NULL) ? "0" /* dummy */ : NULL;
- bzero(&hints, sizeof(struct addrinfo));
+ memset(&hints, 0, sizeof(struct addrinfo));
hints.ai_flags = AI_PASSIVE;
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM; /* dummy */
@@ -2293,7 +2293,7 @@ cpmip(const struct servtab *sep, int ctrl)
if (chBest->ch_Service)
free(chBest->ch_Service);
chBest->ch_Service = strdup(sep->se_service);
- bzero(chBest->ch_Times, sizeof(chBest->ch_Times));
+ memset(chBest->ch_Times, 0, sizeof(chBest->ch_Times));
}
#ifdef INET6
if ((rss.ss_family == AF_INET6 &&
@@ -2307,7 +2307,7 @@ cpmip(const struct servtab *sep, int ctrl)
if (chBest->ch_Service)
free(chBest->ch_Service);
chBest->ch_Service = strdup(sep->se_service);
- bzero(chBest->ch_Times, sizeof(chBest->ch_Times));
+ memset(chBest->ch_Times, 0, sizeof(chBest->ch_Times));
}
#endif
chBest->ch_LTime = t;