diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-30 23:13:29 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-30 23:13:29 +0000 |
commit | 7e732a9cb78f197c4b44892a574842ca1eba0823 (patch) | |
tree | 29e758d4ad659422a03a1379ada5d5453db2c049 /nuttx/net/net_sockets.c | |
parent | 9d5a2de3b28f61877858489604ddbaaf727e5409 (diff) | |
download | px4-nuttx-7e732a9cb78f197c4b44892a574842ca1eba0823.tar.gz px4-nuttx-7e732a9cb78f197c4b44892a574842ca1eba0823.tar.bz2 px4-nuttx-7e732a9cb78f197c4b44892a574842ca1eba0823.zip |
Get rid of psock.h (bad idea); Add logic to clone the socket structure when wrapping the telnet connection as a character driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4349 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/net_sockets.c')
-rw-r--r-- | nuttx/net/net_sockets.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/net/net_sockets.c b/nuttx/net/net_sockets.c index 31c1709d7..0ff4b57ad 100644 --- a/nuttx/net/net_sockets.c +++ b/nuttx/net/net_sockets.c @@ -185,20 +185,20 @@ int net_releaselist(FAR struct socketlist *list) if (crefs <= 0) { - /* Close each open socket in the list - * REVISIT: psock_close() will attempt to use semaphores. - * If we actually are in the IDLE thread, then could this cause - * problems? Probably not, it the task has exited and crefs is - * zero, then there probably could not be a contender for the - * semaphore. - */ + /* Close each open socket in the list + * REVISIT: psock_close() will attempt to use semaphores. + * If we actually are in the IDLE thread, then could this cause + * problems? Probably not, if the task has exited and crefs is + * zero, then there probably could not be a contender for the + * semaphore. + */ for (ndx = 0; ndx < CONFIG_NSOCKET_DESCRIPTORS; ndx++) { FAR struct socket *psock = &list->sl_sockets[ndx]; if (psock->s_crefs > 0) { - (void)psock_close(psock); + (void)psock_close(psock); } } |