mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
NSF update
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4696 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user