[PATCH] acpi: method: use size_t instead of int
Alex Hung
alex.hung at canonical.com
Wed Apr 11 02:47:23 UTC 2012
On 04/10/2012 10:31 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/method/method.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c
> index abf82ed..6797868 100644
> --- a/src/acpi/method/method.c
> +++ b/src/acpi/method/method.c
> @@ -254,13 +254,13 @@ static int method_evaluate_method(fwts_framework *fw,
> {
> fwts_list_link *item;
> fwts_list *methods;
> - int name_len = strlen(name);
> + size_t name_len = strlen(name);
> int found = 0;
>
> if ((methods = fwts_method_get_names()) != NULL) {
> fwts_list_foreach(item, methods) {
> char *method_name = fwts_list_data(char*, item);
> - int len = strlen(method_name);
> + size_t len = strlen(method_name);
> if (strncmp(name, method_name + len - name_len, name_len) == 0) {
> ACPI_OBJECT_LIST arg_list;
>
Acked-by: Alex Hung <alex.hung at canonical.com>
More information about the fwts-devel
mailing list