From db2ac36d7a69f84fa32bc3ba0dad923eacec1fb3 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 3 May 2012 23:37:34 +0000 Subject: [PATCH] NSF update git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4696 42af7a65-404d-4744-a932-0658087f49c3 --- nshlib/nsh_fscmds.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nshlib/nsh_fscmds.c b/nshlib/nsh_fscmds.c index 92d19e371..28a779292 100644 --- a/nshlib/nsh_fscmds.c +++ b/nshlib/nsh_fscmds.c @@ -58,7 +58,6 @@ # include # include # include -# include # 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]);