1
0
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:
Zdenek Kabelac 2013-04-20 20:55:10 +02:00
parent 4eb8db26ac
commit d38af2857f

View File

@ -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,