From c33be34a4104659325b02cd424e4ba9d9ec6ab79 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 31 Jul 2019 14:07:28 +0000 Subject: [PATCH] fileio: Fix a compiler warning introduced by the previous commit git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@8493 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- usr/fileio/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/fileio/common.c b/usr/fileio/common.c index 46f8428a7..c6e33c8e9 100644 --- a/usr/fileio/common.c +++ b/usr/fileio/common.c @@ -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;