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

Alex Hung alex.hung at canonical.com
Wed Apr 11 02:06:27 UTC 2012


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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20120411/3fac666b/attachment.html>


More information about the fwts-devel mailing list