From 12d64c65200930885c694d018ec66d8946b3a214 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 23 Sep 2018 13:51:25 -0700 Subject: Fix sign comparison warning in loop index in FSQueryXInfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FSQXInfo.c: In function ‘FSQueryXInfo’: FSQXInfo.c:110:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j=0; jnum_offsets; j++) ^ Signed-off-by: Alan Coopersmith --- src/FSQXInfo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FSQXInfo.c b/src/FSQXInfo.c index 0edae0a..de776ce 100644 --- a/src/FSQXInfo.c +++ b/src/FSQXInfo.c @@ -74,7 +74,6 @@ FSQueryXInfo( unsigned char *pdata; fsPropInfo local_pi; fsPropOffset local_po; - int j; GetReq(QueryXInfo, req); req->id = fid; @@ -107,7 +106,7 @@ FSQueryXInfo( return FSBadAlloc; } /* get offsets */ - for (j=0; jnum_offsets; j++) + for (unsigned int j = 0; j < props->num_offsets; j++) { _FSReadPad(svr, (char *) &local_po, SIZEOF(fsPropOffset)); offset_data[j].name.position = local_po.name.position; -- cgit v1.2.3