diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-18 02:41:04 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-18 02:41:04 +0000 |
commit | 6fa13c170c6f85bf76b23d689df2cc576f12bffd (patch) | |
tree | b1d073b6d7273a10caa7f4e8c84e244cbded8527 /linux-user | |
parent | c02f499e109916f60e99ef568ac2508ab4c20d82 (diff) |
Correct errno return for setsockopt(), by Thayne Harbaugh.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3839 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5159685e2b..d099e97daf 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -906,7 +906,7 @@ static abi_long do_setsockopt(int sockfd, int level, int optname, default: unimplemented: gemu_log("Unsupported setsockopt level=%d optname=%d \n", level, optname); - ret = -TARGET_ENOSYS; + ret = -TARGET_ENOPROTOOPT; } return ret; } |