Merge pull request #1497 from simonduq/pr/shell-warnings
Fix compiler warnings in shell
This commit is contained in:
commit
9b3e334c7d
@ -86,7 +86,7 @@ base64_decode_char(char c)
|
|||||||
static int
|
static int
|
||||||
base64_add_char(struct base64_decoder_state *s, char c)
|
base64_add_char(struct base64_decoder_state *s, char c)
|
||||||
{
|
{
|
||||||
if(isspace(c)) {
|
if(isspace((int)c)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -532,7 +532,7 @@ shell_strtolong(const char *str, const char **retstr)
|
|||||||
++strptr;
|
++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';
|
num = num * 10 + strptr[i] - '0';
|
||||||
}
|
}
|
||||||
if(retstr != NULL) {
|
if(retstr != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user