diff options
author | Jonathan Wakely <jwakely.gcc@gmail.com> | 2011-06-22 22:46:14 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2011-06-22 23:46:14 +0100 |
commit | 8eeaeeca204ae78d45578acd5912eca6483c9d10 (patch) | |
tree | c7899062a8d4301956bc62dd99a532610ad6297c /libstdc++-v3/testsuite | |
parent | 98656b3d143e7b49fdf62b9486686f838317c3f9 (diff) | |
download | gcc-8eeaeeca204ae78d45578acd5912eca6483c9d10.zip gcc-8eeaeeca204ae78d45578acd5912eca6483c9d10.tar.gz gcc-8eeaeeca204ae78d45578acd5912eca6483c9d10.tar.bz2 |
socket.cc: Use variable and remove attribute.
2011-06-22 Jonathan Wakely <jwakely.gcc@gmail.com>
* testsuite/20_util/bind/socket.cc: Use variable and remove attribute.
From-SVN: r175322
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r-- | libstdc++-v3/testsuite/20_util/bind/socket.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/20_util/bind/socket.cc b/libstdc++-v3/testsuite/20_util/bind/socket.cc index 041100f..c501921 100644 --- a/libstdc++-v3/testsuite/20_util/bind/socket.cc +++ b/libstdc++-v3/testsuite/20_util/bind/socket.cc @@ -35,7 +35,7 @@ int test01() { int fd = 1; my_sockaddr sa; // N.B. non-const - size_t len __attribute__((unused)) = sizeof(sa); // N.B. size_t not socklen_t - return bind(fd, &sa, sizeof(sa)); + size_t len = sizeof(sa); // N.B. size_t not my_socklen_t + return bind(fd, &sa, len); } |