usr/fileio/common.c: Fix a compiler warning

Avoid that the compiler complains that the assert() expression compares a
signed with an unsigned integer.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8269 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-04-21 19:13:35 +00:00
parent a61b47415c
commit 9b37ec66b4

View File

@@ -995,7 +995,7 @@ static void exec_inquiry(struct vdisk_cmd *vcmd)
buf[8] = 0xB1; /* block device characteristics */
resp_len = buf[3] + 6;
} else if (0x80 == cmd->cdb[2]) { /* unit serial number */
int usn_len = strlen(dev->usn);
unsigned int usn_len = strlen(dev->usn);
buf[1] = 0x80;
buf[3] = usn_len;