mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-17 07:12:06 +08:00
Elminate some warnings on tiny systems
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3719 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user