mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +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;
|
missing_len = 0;
|
||||||
|
|
||||||
/* We need at least sizeof(struct clvm_header) bytes in buffer */
|
/* 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) {
|
missing_len > MAX_MISSING_LEN) {
|
||||||
struct clvm_header reply = {
|
struct clvm_header reply = {
|
||||||
.cmd = CLVMD_CMD_REPLY,
|
.cmd = CLVMD_CMD_REPLY,
|
||||||
|
Loading…
Reference in New Issue
Block a user