Skip to content

Commit

Permalink
Fix compiler warnings in shell
Browse files Browse the repository at this point in the history
  • Loading branch information
simonduq committed Feb 3, 2016
1 parent 5d67a61 commit fa07838
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/shell/shell-base64.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ base64_decode_char(char c)
static int
base64_add_char(struct base64_decoder_state *s, char c)
{
if(isspace(c)) {
if(isspace((int)c)) {
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion apps/shell/shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ shell_strtolong(const char *str, const char **retstr)
++strptr;
}

for(i = 0; i < 10 && isdigit(strptr[i]); ++i) {
for(i = 0; i < 10 && isdigit((int)strptr[i]); ++i) {
num = num * 10 + strptr[i] - '0';
}
if(retstr != NULL) {
Expand Down

0 comments on commit fa07838

Please sign in to comment.