mirror of
https://github.com/oliverschmidt/contiki.git
synced 2026-04-26 16:17:54 +00:00
Cast pointer to uintptr_t type to avoid compiler warnings
This commit is contained in:
committed by
Simon Duquennoy
parent
bd54fe83f8
commit
160d792399
@@ -71,7 +71,7 @@ PROCESS_THREAD(shell_poke_process, ev, data)
|
||||
PROCESS_EXIT();
|
||||
}
|
||||
|
||||
address = (uint8_t *)(int)shell_strtolong(args, &next);
|
||||
address = (uint8_t *)(uintptr_t)shell_strtolong(args, &next);
|
||||
if(next == args) {
|
||||
shell_output_str(&poke_command, "usage 1", "");
|
||||
PROCESS_EXIT();
|
||||
@@ -106,7 +106,7 @@ PROCESS_THREAD(shell_peek_process, ev, data)
|
||||
PROCESS_EXIT();
|
||||
}
|
||||
|
||||
address = (uint8_t *)(int)shell_strtolong(args, &next);
|
||||
address = (uint8_t *)(uintptr_t)shell_strtolong(args, &next);
|
||||
if(next == args) {
|
||||
shell_output_str(&peek_command, "usage 1", "");
|
||||
PROCESS_EXIT();
|
||||
|
||||
Reference in New Issue
Block a user