summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2010-01-14 11:08:14 -0600
committerDavid Smith <dsmith@redhat.com>2010-01-14 11:08:14 -0600
commit025e49b203f4f4dc83e02e6440878c64ee616257 (patch)
tree8d7c43e5e6ef65872be5b5667910a4cb403a35fc
parente23234683dc642a002e1dcdf3808b78dba231c9a (diff)
downloadsystemtap-steved-025e49b203f4f4dc83e02e6440878c64ee616257.tar.gz
systemtap-steved-025e49b203f4f4dc83e02e6440878c64ee616257.tar.xz
systemtap-steved-025e49b203f4f4dc83e02e6440878c64ee616257.zip
Fixed rawhide syscall testsuite problem.
* testsuite/systemtap.syscall/net1.c (main): The 'bzero()' function has been deprecated on rawhide. Replaced with 'memset()'.
-rw-r--r--testsuite/systemtap.syscall/net1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/systemtap.syscall/net1.c b/testsuite/systemtap.syscall/net1.c
index b7f1d6cb..434d8f2b 100644
--- a/testsuite/systemtap.syscall/net1.c
+++ b/testsuite/systemtap.syscall/net1.c
@@ -4,7 +4,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
-#include <strings.h>
+#include <string.h>
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);