From 345567279722fc2391a54f263a2d0e494e3bb759 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 9 Aug 2017 11:30:14 +0200 Subject: util/inteltool: Fix a comparison between signed and unsigned integers Change-Id: Ic6489c408a87213d3c39626c5379a44acea2c34d Signed-off-by: Maciej Suminski Reviewed-on: https://review.coreboot.org/21024 Tested-by: build bot (Jenkins) Reviewed-by: Idwer Vollering Reviewed-by: Nico Huber --- util/inteltool/inteltool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util') diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c index 2f3fc7dc03..f873590031 100644 --- a/util/inteltool/inteltool.c +++ b/util/inteltool/inteltool.c @@ -273,8 +273,8 @@ int main(int argc, char *argv[]) struct pci_access *pacc; struct pci_dev *sb = NULL, *nb, *gfx = NULL, *ahci = NULL, *dev; const char *dump_spd_file = NULL; - int i, opt, option_index = 0; - unsigned int id; + int opt, option_index = 0; + unsigned int id, i; char *sbname = "unknown", *nbname = "unknown", *gfxname = "unknown"; -- cgit v1.2.3