diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-17 18:20:14 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-17 18:20:14 +0000 |
commit | d66d542384b3e14269978db683808b5be76f304b (patch) | |
tree | c8bdc4d3719632d0b675a7224e783101a1024f76 /apps/nshlib/nsh_dbgcmds.c | |
parent | dd1702a98798f19b90e4e8d0bf8f513bd904e4f4 (diff) | |
download | px4-nuttx-d66d542384b3e14269978db683808b5be76f304b.tar.gz px4-nuttx-d66d542384b3e14269978db683808b5be76f304b.tar.bz2 px4-nuttx-d66d542384b3e14269978db683808b5be76f304b.zip |
Elminate some warnings on tiny systems
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3719 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/nshlib/nsh_dbgcmds.c')
-rw-r--r-- | apps/nshlib/nsh_dbgcmds.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/nshlib/nsh_dbgcmds.c b/apps/nshlib/nsh_dbgcmds.c index 811a5773e..e9d6d9dab 100644 --- a/apps/nshlib/nsh_dbgcmds.c +++ b/apps/nshlib/nsh_dbgcmds.c @@ -114,7 +114,7 @@ int mem_parse(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv, /* Get the address to be accessed */ - mem->dm_addr = (void*)strtol(argv[1], NULL, 16); + mem->dm_addr = (void*)((uintptr_t)strtol(argv[1], NULL, 16)); /* Get the number of bytes to access */ @@ -332,11 +332,11 @@ void nsh_dumpbuffer(FAR struct nsh_vtbl_s *vtbl, const char *msg, #ifndef CONFIG_NSH_DISABLE_XD int cmd_xd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) { - char *addr; - char *endptr; - int nbytes; + FAR char *addr; + FAR char *endptr; + int nbytes; - addr = (char*)strtol(argv[1], &endptr, 16); + addr = (char*)((uintptr_t)strtol(argv[1], &endptr, 16)); if (argv[0][0] == '\0' || *endptr != '\0') { return ERROR; |