[PATCH] acpi: cstates: use size_t instead of int

Keng-Yu Lin kengyu at canonical.com
Wed Apr 11 05:08:23 UTC 2012


On Wed, Apr 11, 2012 at 10:06 AM, Alex Hung <alex.hung at canonical.com> wrote:
> On 04/10/2012 10:25 PM, Colin King wrote:
>
> From: Colin Ian King <colin.king at canonical.com>
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/acpi/cstates/cstates.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/acpi/cstates/cstates.c b/src/acpi/cstates/cstates.c
> index 6fb8664..40f9122 100644
> --- a/src/acpi/cstates/cstates.c
> +++ b/src/acpi/cstates/cstates.c
> @@ -112,7 +112,7 @@ static void get_cstates(char *path, fwts_cstates *state)
>  		if (entry && strlen(entry->d_name)>3) {
>  			int nr = 0;
>  			int count;
> -			int len;
> +			size_t len;
>
>  			snprintf(filename, sizeof(filename), "%s/%s/name",
>  				path, entry->d_name);
>
> Acked-by: Alex Hung <alex.hung at canonical.com>
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>




More information about the fwts-devel mailing list