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

Keng-Yu Lin kengyu at canonical.com
Wed Oct 17 07:38:26 UTC 2012


On Mon, Oct 15, 2012 at 4:31 AM, Colin King <colin.king at canonical.com> wrote:
> 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
>
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>



More information about the fwts-devel mailing list