]> sourceware.org Git - systemtap.git/commitdiff
Fixed rawhide syscall testsuite problem.
authorDavid Smith <dsmith@redhat.com>
Thu, 14 Jan 2010 17:08:14 +0000 (11:08 -0600)
committerDavid Smith <dsmith@redhat.com>
Thu, 14 Jan 2010 17:08:14 +0000 (11:08 -0600)
* testsuite/systemtap.syscall/net1.c (main): The 'bzero()' function has
  been deprecated on rawhide.  Replaced with 'memset()'.

testsuite/systemtap.syscall/net1.c

index b7f1d6cb91fea81da171541e6c093aae78d74f24..434d8f2bb59a44e2db8adf733bbdadd72b706961 100644 (file)
@@ -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);
This page took 0.02596 seconds and 5 git commands to generate.