mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
gcc: do not mix signess compare
This commit is contained in:
parent
2a1a7a863d
commit
0fc7266353
@ -226,7 +226,7 @@ bool dm_vdo_parse_logical_size(const char *vdo_path, uint64_t *logical_blocks)
|
||||
size = st.st_size;
|
||||
}
|
||||
|
||||
if (read(fh, buffer, sizeof(buffer)) < (MAGIC_NUMBER_SIZE + sizeof(h))) {
|
||||
if (read(fh, buffer, sizeof(buffer)) < (int)(MAGIC_NUMBER_SIZE + sizeof(h))) {
|
||||
log_sys_debug("read", vdo_path);
|
||||
goto err;
|
||||
}
|
||||
@ -270,7 +270,7 @@ bool dm_vdo_parse_logical_size(const char *vdo_path, uint64_t *logical_blocks)
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (read(fh, buffer, sizeof(buffer)) < (sizeof(struct vdo_geometry_block) + sizeof(vn))) {
|
||||
if (read(fh, buffer, sizeof(buffer)) < (int)(sizeof(struct vdo_geometry_block) + sizeof(vn))) {
|
||||
log_sys_debug("read", vdo_path);
|
||||
goto err;
|
||||
}
|
||||
|
@ -713,7 +713,8 @@ struct KMsg : Source {
|
||||
void transform( char *buf, ssize_t *sz ) {
|
||||
char newbuf[ buffer_size ];
|
||||
struct tm time_info;
|
||||
unsigned level, num, pos;
|
||||
unsigned level, num;
|
||||
int pos;
|
||||
unsigned long t;
|
||||
time_t tt;
|
||||
size_t len, slen;
|
||||
|
@ -81,7 +81,7 @@ static void test_kabi_query(void *fixture)
|
||||
|
||||
static const struct {
|
||||
const char *input;
|
||||
int r;
|
||||
unsigned r;
|
||||
} _cases[] = {
|
||||
{"foo", 0},
|
||||
{"/dev/mapper/vg-lvol1", 0},
|
||||
|
@ -530,8 +530,8 @@ static void test_remove_calls_dtr(void *fixture)
|
||||
for (i = 0; i < DTR_COUNT; i++) {
|
||||
bool found = false;
|
||||
do {
|
||||
v.n = i;
|
||||
uint8_t *k = keys + (i * 3);
|
||||
v.n = i;
|
||||
_gen_key(k, k + 3);
|
||||
if (!radix_tree_lookup(rt, k, 3, &v)) {
|
||||
T_ASSERT(radix_tree_insert(rt, k, 3, v));
|
||||
@ -584,8 +584,8 @@ static void test_destroy_calls_dtr(void *fixture)
|
||||
for (i = 0; i < DTR_COUNT; i++) {
|
||||
bool found = false;
|
||||
do {
|
||||
v.n = i;
|
||||
uint8_t *k = keys + (i * 3);
|
||||
v.n = i;
|
||||
_gen_key(k, k + 3);
|
||||
if (!radix_tree_lookup(rt, k, 3, &v)) {
|
||||
T_ASSERT(radix_tree_insert(rt, k, 3, v));
|
||||
|
Loading…
Reference in New Issue
Block a user