diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-04-05 06:40:40 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-04-05 06:40:40 -0600 |
commit | ae6fadacddabaffdf1971b8b0e45f87376cdba23 (patch) | |
tree | fe09defea11efe6e54bdfa7bfe24275f447adafc /nuttx/net/getsockopt.c | |
parent | 66fc92f59e4084677ddbd12a0b9d41d9ab2615a8 (diff) | |
download | px4-nuttx-ae6fadacddabaffdf1971b8b0e45f87376cdba23.tar.gz px4-nuttx-ae6fadacddabaffdf1971b8b0e45f87376cdba23.tar.bz2 px4-nuttx-ae6fadacddabaffdf1971b8b0e45f87376cdba23.zip |
Fix bad net_clone.c compilation when CONFIG_NET_SOCKOPTS is not defined
Diffstat (limited to 'nuttx/net/getsockopt.c')
-rw-r--r-- | nuttx/net/getsockopt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/net/getsockopt.c b/nuttx/net/getsockopt.c index c3afb29c9..405823fb4 100644 --- a/nuttx/net/getsockopt.c +++ b/nuttx/net/getsockopt.c @@ -155,7 +155,7 @@ int psock_getsockopt(FAR struct socket *psock, int level, int option, { err = EINVAL; goto errout; - } + } /* Return the socket type */ @@ -180,7 +180,7 @@ int psock_getsockopt(FAR struct socket *psock, int level, int option, { err = EINVAL; goto errout; - } + } /* Get the timeout value. This is a atomic operation and should * require no special operation. @@ -217,6 +217,7 @@ int psock_getsockopt(FAR struct socket *psock, int level, int option, err = ENOPROTOOPT; goto errout; } + return OK; errout: |