9
0
Fork 0
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1276 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2008-11-18 17:24:50 +00:00
parent 6e3d0b9ec1
commit c23d514aab
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* net-sockets.c * net-sockets.c
* *
* Copyright (C) 2007 Gregory Nutt. All rights reserved. * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr> * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in * notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the * the documentation and/or other materials provided with the
* distribution. * distribution.
* 3. Neither the name Gregory Nutt nor the names of its contributors may be * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software * used to endorse or promote products derived from this software
* without specific prior written permission. * without specific prior written permission.
* *

View File

@ -345,7 +345,7 @@ static inline void recvfrom_tcpsender(struct uip_driver_s *dev, struct recvfrom_
* TCP receive operation via by the uIP layer. * TCP receive operation via by the uIP layer.
* *
* Parameters: * Parameters:
* dev The sructure of the network driver that caused the interrupt * dev The structure of the network driver that caused the interrupt
* conn The connection structure associated with the socket * conn The connection structure associated with the socket
* flags Set of events describing why the callback was invoked * flags Set of events describing why the callback was invoked
* *
@ -999,11 +999,13 @@ ssize_t recvfrom(int sockfd, FAR void *buf, size_t len, int flags,
/* Verify that non-NULL pointers were passed */ /* Verify that non-NULL pointers were passed */
#ifdef CONFIG_DEBUG
if (!buf) if (!buf)
{ {
err = EINVAL; err = EINVAL;
goto errout; goto errout;
} }
#endif
/* Get the underlying socket structure */ /* Get the underlying socket structure */
/* Verify that the sockfd corresponds to valid, allocated socket */ /* Verify that the sockfd corresponds to valid, allocated socket */