forked from Archive/PX4-Autopilot
NSF update
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4696 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
743103b228
commit
f812f168dd
|
@ -58,7 +58,6 @@
|
|||
# include <sys/socket.h>
|
||||
# include <netinet/in.h>
|
||||
# include <nuttx/fs/nfs.h>
|
||||
# include <nuttx/kmalloc.h>
|
||||
# endif
|
||||
#endif
|
||||
#endif
|
||||
|
@ -1340,7 +1339,7 @@ int cmd_nfsmount(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||
|
||||
/* Create an instance of the sockaddr_in state structure */
|
||||
|
||||
sin = (struct sockaddr_in *)kzalloc(sizeof(struct sockaddr_in));
|
||||
sin = (struct sockaddr_in *)zalloc(sizeof(struct sockaddr_in));
|
||||
if (!sin)
|
||||
{
|
||||
nsh_output(vtbl, g_fmtcmdoutofmemory, argv[0]);
|
||||
|
|
Loading…
Reference in New Issue