summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fr-archive.c4
-rw-r--r--src/fr-command-tar.c8
-rw-r--r--src/fr-stock.c2
-rw-r--r--src/fr-window.c4
-rw-r--r--src/gio-utils.c2
-rw-r--r--src/glib-utils.c2
6 files changed, 11 insertions, 11 deletions
diff --git a/src/fr-archive.c b/src/fr-archive.c
index ce3d13e..6605ff3 100644
--- a/src/fr-archive.c
+++ b/src/fr-archive.c
@@ -567,8 +567,8 @@ get_mime_type_from_magic_numbers (GFile *file)
{ 0, 4, "LRZI", "application/x-lrzip" },
};
- char buffer[32];
- int i;
+ char buffer[32];
+ size_t i;
if (! g_load_file_in_buffer (file, buffer, sizeof (buffer), NULL))
return NULL;
diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c
index e24e296..0c17433 100644
--- a/src/fr-command-tar.c
+++ b/src/fr-command-tar.c
@@ -1102,8 +1102,8 @@ fr_command_tar_get_capabilities (FrCommand *comm,
capabilities |= FR_COMMAND_CAN_READ_WRITE;
}
else if (is_mime_type (mime_type, "application/x-7z-compressed-tar")) {
- char *try_command[3] = { "7za", "7zr", "7z" };
- int i;
+ char *try_command[3] = { "7za", "7zr", "7z" };
+ size_t i;
for (i = 0; i < G_N_ELEMENTS (try_command); i++) {
if (is_program_available (try_command[i], check_command)) {
@@ -1126,8 +1126,8 @@ fr_command_tar_set_mime_type (FrCommand *comm,
FR_COMMAND_CLASS (parent_class)->set_mime_type (comm, mime_type);
if (is_mime_type (mime_type, "application/x-7z-compressed-tar")) {
- char *try_command[3] = { "7za", "7zr", "7z" };
- int i;
+ char *try_command[3] = { "7za", "7zr", "7z" };
+ size_t i;
for (i = 0; i < G_N_ELEMENTS (try_command); i++) {
if (is_program_in_path (try_command[i])) {
diff --git a/src/fr-stock.c b/src/fr-stock.c
index a8a505f..27ba5cd 100644
--- a/src/fr-stock.c
+++ b/src/fr-stock.c
@@ -50,7 +50,7 @@ fr_stock_init (void)
{
GtkIconFactory *factory;
GtkIconSource *source;
- int i;
+ size_t i;
if (stock_initialized)
return;
diff --git a/src/fr-window.c b/src/fr-window.c
index e007ace..db9d7af 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -1123,7 +1123,7 @@ static gboolean
compute_file_list_name (FrWindow *window,
FileData *fdata,
const char *current_dir,
- int current_dir_len,
+ size_t current_dir_len,
GHashTable *names_hash,
gboolean *different_name)
{
@@ -1183,7 +1183,7 @@ fr_window_compute_list_names (FrWindow *window,
GPtrArray *files)
{
const char *current_dir;
- int current_dir_len;
+ size_t current_dir_len;
GHashTable *names_hash;
guint i;
gboolean visible_list_started = FALSE;
diff --git a/src/gio-utils.c b/src/gio-utils.c
index 27610b5..8c5eac0 100644
--- a/src/gio-utils.c
+++ b/src/gio-utils.c
@@ -522,7 +522,7 @@ get_dir_list_from_file_list (GHashTable *h_dirs,
{
GList *scan;
GList *dir_list = NULL;
- int base_dir_len;
+ size_t base_dir_len;
if (base_dir == NULL)
base_dir = "";
diff --git a/src/glib-utils.c b/src/glib-utils.c
index a4f8d26..1d90489 100644
--- a/src/glib-utils.c
+++ b/src/glib-utils.c
@@ -728,7 +728,7 @@ _g_path_get_base_name (const char *path,
const char *base_dir,
gboolean junk_paths)
{
- int base_dir_len;
+ size_t base_dir_len;
const char *base_path;
if (junk_paths)