[PATCH] acpi: method: use size_t instead of int
Keng-Yu Lin
kengyu at canonical.com
Wed Apr 11 05:13:48 UTC 2012
On Wed, Apr 11, 2012 at 10:47 AM, Alex Hung <alex.hung at canonical.com> wrote:
> 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>
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>
More information about the fwts-devel
mailing list