Laurent Vivier 3f9ac9b39b linux-user: remove duplicate tswap32() from do_getsockopt()
This issue has been detected with tests/linux-tests.c:

linux-test.c:330: getsockopt

327     len = sizeof(val);
328     chk_error(getsockopt(server_fd, SOL_SOCKET, SO_TYPE, &val, &len));
329     if (val != SOCK_STREAM)
330         error("getsockopt");

In linux-user/syscall.c:do_getsockopt(), we have:
...
        val = tswap32(val);
...
            if (put_user_u32(val, optval_addr))
...

whereas "put_user_u32" calls in the end "__put_user" which uses "tswap32".

So the "val = tswap32(val);" is useless and wrong.

This patch removes it.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
2009-06-16 16:58:45 +03:00
2009-06-15 14:04:34 +02:00
2009-06-13 08:44:31 +00:00
2009-06-13 08:44:31 +00:00
2009-05-13 20:54:26 +01:00
2008-12-13 09:32:43 +00:00
2009-05-13 20:54:26 +01:00
2004-08-01 21:54:53 +00:00
2009-06-15 13:52:27 +02:00
2003-04-29 20:53:42 +00:00
2009-03-07 21:48:00 +00:00
2009-01-05 18:11:53 +00:00
2009-06-15 14:04:22 +02:00
2009-03-07 15:46:23 +00:00
2009-03-10 21:43:35 +00:00
2009-01-14 18:39:49 +00:00
2009-04-07 17:57:09 +00:00
2009-04-07 17:57:09 +00:00
2008-10-12 17:54:42 +00:00
2009-05-19 16:17:58 +01:00
2009-05-26 21:10:28 +02:00
2009-05-13 20:54:26 +01:00
2008-10-27 19:49:12 +00:00
2009-05-24 21:24:33 +01:00
2009-05-26 21:10:28 +02:00
2009-05-26 21:10:28 +02:00
2009-03-05 23:01:23 +00:00
2009-05-27 09:46:03 -05:00
2009-06-05 15:16:41 +01:00
2008-11-12 17:18:41 +00:00
2009-03-08 12:41:36 +00:00
2007-09-16 20:03:23 +00:00
2008-04-12 20:14:54 +00:00
2008-04-12 20:14:54 +00:00
2008-05-31 16:21:33 +00:00
2005-04-07 22:20:31 +00:00
2009-05-30 01:59:37 +01:00
2008-12-14 08:50:18 +00:00
2009-06-13 19:19:25 -05:00
2008-11-30 16:25:37 +00:00
2009-01-05 18:11:53 +00:00
2003-08-10 22:14:22 +00:00
2009-05-28 14:00:49 +02:00
2009-06-09 18:45:16 +00:00
2009-05-25 18:56:13 +01:00
2007-05-05 19:24:38 +00:00
2007-05-05 19:24:38 +00:00
2009-06-09 11:38:50 +01:00
2009-05-13 22:21:47 +01:00
2009-05-08 15:51:19 -05:00
2009-06-15 13:52:27 +02:00
2009-05-14 22:35:09 +01:00
2009-05-09 23:22:35 +01:00
2009-01-14 18:39:49 +00:00
2009-05-19 22:29:20 +04:00
2009-06-15 12:51:37 -05:00
2009-05-08 16:11:49 -05:00
2007-11-17 17:14:51 +00:00
2009-03-05 23:01:23 +00:00
2008-12-14 08:50:18 +00:00
2009-05-14 17:03:49 -05:00
2008-12-13 09:32:43 +00:00
2009-04-07 21:47:27 +00:00
2007-10-06 11:28:21 +00:00
2008-12-14 08:53:17 +00:00
2008-02-04 14:47:49 +00:00
2008-12-04 11:29:42 +00:00
2009-05-13 22:21:47 +01:00
2009-05-22 10:50:35 -05:00
2009-03-05 23:01:23 +00:00
2008-09-06 16:31:30 +00:00
2009-03-06 23:44:29 +00:00
2009-03-06 23:44:29 +00:00
2009-03-06 23:44:29 +00:00
2009-03-06 23:44:29 +00:00
2005-01-06 20:50:00 +00:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.
Description
No description provided
Readme 431 MiB
Languages
C 82.9%
C++ 6.4%
Python 3.2%
Dylan 2.9%
Shell 1.6%
Other 2.8%