summaryrefslogtreecommitdiff
path: root/nuttx/examples/nsh/nsh_envcmds.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-02-20 18:02:55 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-02-20 18:02:55 +0000
commit9c6d2638a2c2b84a434d2a88aebfe03da6c18482 (patch)
tree4b95f487fa38221ffc958b2c0fbbfc172f292574 /nuttx/examples/nsh/nsh_envcmds.c
parentc2bbba7b6914bff65b42c1910a31598c2eadb45f (diff)
downloadpx4-nuttx-9c6d2638a2c2b84a434d2a88aebfe03da6c18482.tar.gz
px4-nuttx-9c6d2638a2c2b84a434d2a88aebfe03da6c18482.tar.bz2
px4-nuttx-9c6d2638a2c2b84a434d2a88aebfe03da6c18482.zip
strerror() is big; don't use it unless requested
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@717 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/nsh_envcmds.c')
-rw-r--r--nuttx/examples/nsh/nsh_envcmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/examples/nsh/nsh_envcmds.c b/nuttx/examples/nsh/nsh_envcmds.c
index 4af3d026d..0a96206df 100644
--- a/nuttx/examples/nsh/nsh_envcmds.c
+++ b/nuttx/examples/nsh/nsh_envcmds.c
@@ -1,7 +1,7 @@
/****************************************************************************
* nsh_envcmds.c
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * 3. Neither the name Gregory Nutt nor the names of its contributors may be
+ * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -118,7 +118,7 @@ void cmd_set(FAR void *handle, int argc, char **argv)
{
if (setenv(argv[1], argv[2], TRUE) < 0)
{
- nsh_output(handle, g_fmtcmdfailed, argv[0], "setenv", strerror(errno));
+ nsh_output(handle, g_fmtcmdfailed, argv[0], "setenv", NSH_ERRNO);
}
}
#endif
@@ -132,7 +132,7 @@ void cmd_unset(FAR void *handle, int argc, char **argv)
{
if (unsetenv(argv[1]) < 0)
{
- nsh_output(handle, g_fmtcmdfailed, argv[0], "unsetenv", strerror(errno));
+ nsh_output(handle, g_fmtcmdfailed, argv[0], "unsetenv", NSH_ERRNO);
}
}
#endif