1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

gcc: match types

This commit is contained in:
Zdenek Kabelac 2021-09-22 16:45:33 +02:00
parent 9eafd44734
commit ee15065a0f
2 changed files with 3 additions and 2 deletions

View File

@ -710,7 +710,7 @@ static char *_fetch_string(char **src, const int delimiter)
{ {
char *p, *ret; char *p, *ret;
size_t len = (p = strchr(*src, delimiter)) ? size_t len = (p = strchr(*src, delimiter)) ?
p - *src : strlen(*src); (size_t)(p - *src) : strlen(*src);
if ((ret = strndup(*src, len))) if ((ret = strndup(*src, len)))
*src += len + 1; *src += len + 1;

View File

@ -150,7 +150,8 @@ dm_bitset_t dm_bitset_parse_list(const char *str, struct dm_pool *mem,
size_t min_num_bits) size_t min_num_bits)
{ {
unsigned a, b; unsigned a, b;
int c, old_c, totaldigits, ndigits, nmaskbits; int c, old_c, totaldigits, ndigits;
size_t nmaskbits;
int at_start, in_range; int at_start, in_range;
dm_bitset_t mask = NULL; dm_bitset_t mask = NULL;
const char *start = str; const char *start = str;