summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2018-09-23 13:51:25 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2018-09-23 13:51:48 -0700
commit12d64c65200930885c694d018ec66d8946b3a214 (patch)
tree26f771a029ad43ff17e039341c049e5ddc2f1529
parent3eb9c6bbfb4e6caf6efb5dec8744f257c2d63be7 (diff)
Fix sign comparison warning in loop index in FSQueryXInfo
FSQXInfo.c: In function ‘FSQueryXInfo’: FSQXInfo.c:110:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j=0; j<props->num_offsets; j++) ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/FSQXInfo.c3
1 files changed, 1 insertions, 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; j<props->num_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;