diff --git a/apps/nshlib/nsh_fscmds.c b/apps/nshlib/nsh_fscmds.c index 92d19e3714..28a779292e 100644 --- a/apps/nshlib/nsh_fscmds.c +++ b/apps/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]);