aboutsummaryrefslogtreecommitdiff
path: root/nis/nss_compat
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-01-13 11:12:55 -0800
committerRoland McGrath <roland@hack.frob.com>2015-01-13 11:12:55 -0800
commit1c6e6f2315b343cbac94c2dd798a6ebb80489a12 (patch)
tree851756d9425469dfce159d7bb1a30bee0283816d /nis/nss_compat
parent8bedcb5f03c62bf6001396dafdd82fbd4da7c2db (diff)
downloadglibc-1c6e6f2315b343cbac94c2dd798a6ebb80489a12.tar
glibc-1c6e6f2315b343cbac94c2dd798a6ebb80489a12.tar.gz
glibc-1c6e6f2315b343cbac94c2dd798a6ebb80489a12.tar.bz2
glibc-1c6e6f2315b343cbac94c2dd798a6ebb80489a12.zip
Remove some references to bcopy/bcmp/bzero.
Diffstat (limited to 'nis/nss_compat')
-rw-r--r--nis/nss_compat/compat-pwd.c2
-rw-r--r--nis/nss_compat/compat-spwd.c2
2 files changed, 2 insertions, 2 deletions
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),