[PATCH 03/26] lib: fwts_dump: fix loop variable type to match table length type

Colin King colin.king at canonical.com
Sun Oct 14 20:31:55 UTC 2012


From: Colin Ian King <colin.king at canonical.com>

Ensure the loop variable is of the same type as that of the ACPI
table length.

Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 src/lib/src/fwts_dump.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/src/fwts_dump.c b/src/lib/src/fwts_dump.c
index f14e8f9..fb69376 100644
--- a/src/lib/src/fwts_dump.c
+++ b/src/lib/src/fwts_dump.c
@@ -145,7 +145,7 @@ static int dump_lspci(fwts_framework *fw, const char *path, const char *filename
 static int dump_acpi_table(fwts_acpi_table_info *table, FILE *fp)
 {
 	char buffer[128];
-	int n;
+	size_t n;
 
 	fprintf(fp, "%s @ 0x%x\n", table->name, (uint32_t)table->addr);
 
-- 
1.7.10.4




More information about the fwts-devel mailing list