diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-30 21:29:59 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-30 21:29:59 +0000 |
commit | 9ddfc032d424842691e1f4a30960547b578c9036 (patch) | |
tree | 3e0841836e96d7f053e3ee20f9caf4d1bd515dfc /nuttx/net/net_sockets.c | |
parent | d1143e0418c1cd3cbf447e8f49c57bda0e81d75c (diff) | |
download | px4-nuttx-9ddfc032d424842691e1f4a30960547b578c9036.tar.gz px4-nuttx-9ddfc032d424842691e1f4a30960547b578c9036.tar.bz2 px4-nuttx-9ddfc032d424842691e1f4a30960547b578c9036.zip |
Add new psock layer; telnet session is now wrapped in a character device
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4347 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/net_sockets.c')
-rw-r--r-- | nuttx/net/net_sockets.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/net/net_sockets.c b/nuttx/net/net_sockets.c index a1e8f15b0..31c1709d7 100644 --- a/nuttx/net/net_sockets.c +++ b/nuttx/net/net_sockets.c @@ -1,8 +1,8 @@ /**************************************************************************** * net/net_sockets.c * - * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt <spudmonkey@racsa.co.cr> + * Copyright (C) 2007-2009, 2011-2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -186,7 +186,7 @@ int net_releaselist(FAR struct socketlist *list) if (crefs <= 0) { /* Close each open socket in the list - * REVISIT: net_closesocket() will attempt to use semaphores. + * 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 @@ -198,7 +198,7 @@ int net_releaselist(FAR struct socketlist *list) FAR struct socket *psock = &list->sl_sockets[ndx]; if (psock->s_crefs > 0) { - (void)net_closesocket(psock); + (void)psock_close(psock); } } |