Skip to content

Commit

Permalink
[style] fix conversion warnings in string-utils (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
bukepo authored and abtink committed Oct 11, 2019
1 parent 32b29ce commit 5315f26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/string-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ parse_string_into_data(uint8_t* buffer, size_t len, const char* c_str)
}

while ((*c_str != 0) && (len > 0)) {
char c = tolower(*c_str++);
int c = tolower(*c_str++);
if (!(isdigit(c) || (c >= 'a' && c <= 'f'))) {
continue;
}
Expand Down Expand Up @@ -169,8 +169,8 @@ strtomask_uint32(const char* in_string)
char *tmp_string = strdup(in_string);
char *chan_ranges; // points to a channel num or a range of channels
char *dash_location; // points to location of the dash in a range of channels
uint8_t channel_start = 0;
uint8_t channel_stop = 0;
int channel_start = 0;
int channel_stop = 0;
uint32_t mask = 0;

chan_ranges = strtok(tmp_string, ",");
Expand Down

0 comments on commit 5315f26

Please sign in to comment.