From 1c6e6f2315b343cbac94c2dd798a6ebb80489a12 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 13 Jan 2015 11:12:55 -0800 Subject: Remove some references to bcopy/bcmp/bzero. --- nis/nss_compat/compat-pwd.c | 2 +- nis/nss_compat/compat-spwd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'nis/nss_compat') diff --git a/nis/nss_compat/compat-pwd.c b/nis/nss_compat/compat-pwd.c index 7fd68a85c2..e3e3dbb308 100644 --- a/nis/nss_compat/compat-pwd.c +++ b/nis/nss_compat/compat-pwd.c @@ -578,7 +578,7 @@ getpwent_next_file (struct passwd *result, ent_t *ent, char *user, *host, *domain; struct __netgrent netgrdata; - bzero (&netgrdata, sizeof (struct __netgrent)); + memset (&netgrdata, 0, sizeof (struct __netgrent)); __internal_setnetgrent (&result->pw_name[2], &netgrdata); while (__internal_getnetgrent_r (&host, &user, &domain, &netgrdata, buf2, sizeof (buf2), errnop)) diff --git a/nis/nss_compat/compat-spwd.c b/nis/nss_compat/compat-spwd.c index 1f4356cedd..73c2ed3fe0 100644 --- a/nis/nss_compat/compat-spwd.c +++ b/nis/nss_compat/compat-spwd.c @@ -532,7 +532,7 @@ getspent_next_file (struct spwd *result, ent_t *ent, char *user, *host, *domain; struct __netgrent netgrdata; - bzero (&netgrdata, sizeof (struct __netgrent)); + memset (&netgrdata, 0, sizeof (struct __netgrent)); __internal_setnetgrent (&result->sp_namp[2], &netgrdata); while (__internal_getnetgrent_r (&host, &user, &domain, &netgrdata, buf2, sizeof (buf2), -- cgit 1.4.1