mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-03 05:09:03 +00:00
NSF update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4696 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
2092af7208
commit
db2ac36d7a
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue