mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: cast to len's type
Cleanup different signess gcc warning.
This commit is contained in:
parent
4eb8db26ac
commit
d38af2857f
@ -1217,7 +1217,7 @@ static int read_from_local_sock(struct local_client *thisfd)
|
||||
missing_len = 0;
|
||||
|
||||
/* We need at least sizeof(struct clvm_header) bytes in buffer */
|
||||
if (len < sizeof(struct clvm_header) || argslen < 0 ||
|
||||
if (len < (int)sizeof(struct clvm_header) || argslen < 0 ||
|
||||
missing_len > MAX_MISSING_LEN) {
|
||||
struct clvm_header reply = {
|
||||
.cmd = CLVMD_CMD_REPLY,
|
||||
|
Loading…
Reference in New Issue
Block a user