diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2013-12-21 14:16:32 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2013-12-21 14:16:32 +0000 |
commit | 8a196684e66e6543c5efbc70cfb37d4579a51cf6 (patch) | |
tree | 9b15493f1c51e8576dbaa6d748ea3e3a5006bbe7 /libgphoto2_port/libgphoto2_port | |
parent | 2fd52df6f351cfb4b1774c6ab1387ae005b11752 (diff) | |
download | libgphoto2-8a196684e66e6543c5efbc70cfb37d4579a51cf6.tar.gz |
unsigned loop bounds
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14600 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2_port/libgphoto2_port')
-rw-r--r-- | libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c | 11 | ||||
-rw-r--r-- | libgphoto2_port/libgphoto2_port/gphoto2-port-log.c | 4 |
2 files changed, 8 insertions, 7 deletions
diff --git a/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c b/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c index a30276788..4ae0d21f9 100644 --- a/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c +++ b/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c @@ -139,7 +139,7 @@ gp_port_info_list_free (GPPortInfoList *list) CHECK_NULL (list); if (list->info) { - int i; + unsigned int i; for (i=0;i<list->count;i++) { free (list->info[i]->name); @@ -179,7 +179,7 @@ gp_port_info_list_free (GPPortInfoList *list) int gp_port_info_list_append (GPPortInfoList *list, GPPortInfo info) { - int generic, i; + unsigned int generic, i; GPPortInfo *new_info; CHECK_NULL (list); @@ -324,7 +324,7 @@ gp_port_info_list_load (GPPortInfoList *list) int gp_port_info_list_count (GPPortInfoList *list) { - int count, i; + unsigned int count, i; CHECK_NULL (list); @@ -365,7 +365,8 @@ gp_port_info_list_count (GPPortInfoList *list) int gp_port_info_list_lookup_path (GPPortInfoList *list, const char *path) { - int i, result, generic; + unsigned int i; + int result, generic; regex_t pattern; #ifdef HAVE_GNU_REGEX const char *rv; @@ -467,7 +468,7 @@ gp_port_info_list_lookup_path (GPPortInfoList *list, const char *path) int gp_port_info_list_lookup_name (GPPortInfoList *list, const char *name) { - int i, generic; + unsigned int i, generic; CHECK_NULL (list && name); diff --git a/libgphoto2_port/libgphoto2_port/gphoto2-port-log.c b/libgphoto2_port/libgphoto2_port/gphoto2-port-log.c index 45f7c61f8..a829d7438 100644 --- a/libgphoto2_port/libgphoto2_port/gphoto2-port-log.c +++ b/libgphoto2_port/libgphoto2_port/gphoto2-port-log.c @@ -183,7 +183,7 @@ gp_log_data (const char *domain, const char *data, unsigned int size) char *curline, *result; int x = HEXDUMP_INIT_X; int y = HEXDUMP_INIT_Y; - int index; + unsigned int index; unsigned char value; if (!data) { @@ -262,7 +262,7 @@ void gp_logv (GPLogLevel level, const char *domain, const char *format, va_list args) { - int i; + unsigned int i; #ifdef HAVE_VA_COPY va_list xargs; #else |