[PATCH] lib: fwts_acpi_method: use size_t instead of int
Colin King
colin.king at canonical.com
Tue Apr 10 14:35:38 UTC 2012
From: Colin Ian King <colin.king at canonical.com>
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
src/lib/src/fwts_acpi_method.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/src/fwts_acpi_method.c b/src/lib/src/fwts_acpi_method.c
index c68f8e4..885c8c8 100644
--- a/src/lib/src/fwts_acpi_method.c
+++ b/src/lib/src/fwts_acpi_method.c
@@ -164,12 +164,12 @@ fwts_list *fwts_method_get_names(void)
*/
char *fwts_method_exists(char *name)
{
- int name_len = strlen(name);
+ size_t name_len = strlen(name);
fwts_list_link *item;
fwts_list_foreach(item, fwts_method_names) {
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)
return method_name;
--
1.7.9.1
More information about the fwts-devel
mailing list