From: David Smith Date: Thu, 14 Jan 2010 17:08:14 +0000 (-0600) Subject: Fixed rawhide syscall testsuite problem. X-Git-Tag: release-1.1~12 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=025e49b203f4f4dc83e02e6440878c64ee616257;p=systemtap.git Fixed rawhide syscall testsuite problem. * testsuite/systemtap.syscall/net1.c (main): The 'bzero()' function has been deprecated on rawhide. Replaced with 'memset()'. --- diff --git a/testsuite/systemtap.syscall/net1.c b/testsuite/systemtap.syscall/net1.c index b7f1d6cb9..434d8f2bb 100644 --- a/testsuite/systemtap.syscall/net1.c +++ b/testsuite/systemtap.syscall/net1.c @@ -4,7 +4,7 @@ #include #include #include -#include +#include int main() { @@ -20,7 +20,7 @@ int main() fcntl(listenfd, F_SETFL, flags | O_NONBLOCK); //staptest// fcntl[64]* (NNNN, F_SETFL, XXXX) = 0 - bzero(&sa, sizeof(sa)); + memset(&sa, 0, sizeof(sa)); sa.sin_family=AF_INET; sa.sin_addr.s_addr = htonl(INADDR_ANY); sa.sin_port = htons(8765);