diff options
author | Andreas Schwab <schwab@redhat.com> | 2009-07-27 10:51:39 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@redhat.com> | 2009-07-27 10:51:39 +0200 |
commit | e1a51361e3ac137c56adc6083d095c68e9471795 (patch) | |
tree | bfec41199e84a74265d8e77b0e8444b06bc9ff00 /posix | |
parent | 9285e82ab3a0d1bdaa63fc740165d6a300ad0cc5 (diff) | |
parent | 16d2ea4c821502948d193a152c8b151f5497a0d3 (diff) |
Merge commit 'origin/master' into fedora/master
Diffstat (limited to 'posix')
-rw-r--r-- | posix/tst-rfc3484-2.c | 2 | ||||
-rw-r--r-- | posix/tst-rfc3484-3.c | 2 | ||||
-rw-r--r-- | posix/tst-rfc3484.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/posix/tst-rfc3484-2.c b/posix/tst-rfc3484-2.c index c85fdd0742..bf5f6cff7e 100644 --- a/posix/tst-rfc3484-2.c +++ b/posix/tst-rfc3484-2.c @@ -82,6 +82,8 @@ do_test (void) struct sockaddr_in so1; so1.sin_family = AF_INET; so1.sin_addr.s_addr = h (0xc0a85f19); + /* Clear the rest of the structure to avoid warnings. */ + memset (so1.sin_zero, '\0', sizeof (so1.sin_zero)); struct sockaddr_in sa1; sa1.sin_family = AF_INET; diff --git a/posix/tst-rfc3484-3.c b/posix/tst-rfc3484-3.c index 3aa4563c0c..8eba74e48e 100644 --- a/posix/tst-rfc3484-3.c +++ b/posix/tst-rfc3484-3.c @@ -113,6 +113,8 @@ do_test (void) struct sockaddr_in so; so.sin_family = AF_INET; so.sin_addr.s_addr = h (0x0aa85f19); + /* Clear the rest of the structure to avoid warnings. */ + memset (so.sin_zero, '\0', sizeof (so.sin_zero)); for (int i = 0; i < naddrs; ++i) { diff --git a/posix/tst-rfc3484.c b/posix/tst-rfc3484.c index 15d0c94a5e..26835cf8b2 100644 --- a/posix/tst-rfc3484.c +++ b/posix/tst-rfc3484.c @@ -102,6 +102,8 @@ do_test (void) struct sockaddr_in so; so.sin_family = AF_INET; so.sin_addr.s_addr = h (0xc0a85f19); + /* Clear the rest of the structure to avoid warnings. */ + memset (so.sin_zero, '\0', sizeof (so.sin_zero)); for (int i = 0; i < naddrs; ++i) { |