summaryrefslogtreecommitdiff
path: root/apps/nshlib/nsh_parse.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-04-11 12:13:18 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-04-11 12:13:18 -0600
commit03a22b61713b49d36b355c2f286cdfd58739bec5 (patch)
tree9eb46bda1662f9d6a9f81e4eefdb45c0e369ed52 /apps/nshlib/nsh_parse.c
parentb80e8be652dfa52e97daa65aa3e550cf31cb2409 (diff)
downloadpx4-nuttx-03a22b61713b49d36b355c2f286cdfd58739bec5.tar.gz
px4-nuttx-03a22b61713b49d36b355c2f286cdfd58739bec5.tar.bz2
px4-nuttx-03a22b61713b49d36b355c2f286cdfd58739bec5.zip
Allow NSH date command with no RTC. This command is useful without an RTC too. Also, this permits testing on the simulator which never has an RTC
Diffstat (limited to 'apps/nshlib/nsh_parse.c')
-rw-r--r--apps/nshlib/nsh_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/nshlib/nsh_parse.c b/apps/nshlib/nsh_parse.c
index a7a35e8f2..e9d3aef97 100644
--- a/apps/nshlib/nsh_parse.c
+++ b/apps/nshlib/nsh_parse.c
@@ -365,7 +365,7 @@ static pthread_addr_t nsh_child(pthread_addr_t arg)
dbg("BG %s complete\n", carg->argv[0]);
nsh_releaseargs(carg);
- return (void*)ret;
+ return (pthread_addr_t)((uintptr_t)ret);
}
#endif