Use memset instead of bzero
authorEzra Peisach <epeisach@mit.edu>
Wed, 24 Jul 1996 18:33:24 +0000 (18:33 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 24 Jul 1996 18:33:24 +0000 (18:33 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8798 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/rpc/ChangeLog
src/lib/rpc/pmap_rmt.c

index d1827574aa8b05400d03180a89ecb23bdfa1aa9a..17e3ca778110fce6102ffea21bbe3754a7c24dff 100644 (file)
@@ -1,5 +1,7 @@
 Wed Jul 24 07:58:38 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
+       * pmap_rmt.c (clnt_broadcast): Use memset insetad of bzero.
+
        * Makefile.in (DEPLIBS): Use correct version number for
                gssapi_krb5 dependency. 
 
index 6a237676399f77ffa52df7e988402f81354cd0c6..743d7fc3001fdb9d6552fc5788e10a24f2d25b08 100644 (file)
@@ -280,7 +280,7 @@ clnt_broadcast(prog, vers, proc, xargs, argsp, xresults, resultsp, eachresult)
        mask = (1 << sock);
 #endif /* def FD_SETSIZE */
        nets = getbroadcastnets(addrs, sock, inbuf);
-       bzero((char *)&baddr, sizeof (baddr));
+       memset(&baddr, 0, sizeof (baddr));
        baddr.sin_family = AF_INET;
        baddr.sin_port = htons(PMAPPORT);
        baddr.sin_addr.s_addr = htonl(INADDR_ANY);