summaryrefslogtreecommitdiff
path: root/gtk/gtkmountoperation.c
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2009-07-12 18:00:40 +0200
committerHans Breuer <hans@breuer.org>2009-07-13 09:45:01 +0200
commitfcdeab5456c7774edf79c8c26658a8fd5174c03d (patch)
treed77b3f1c3d84b7e162462c91182c2df547c1ba38 /gtk/gtkmountoperation.c
parentc6f9e39762f9ae338c685cbdfdd247e3bb464941 (diff)
downloadgtk+-fcdeab5456c7774edf79c8c26658a8fd5174c03d.tar.gz
Fix gccism - pointer arithmetic with void pointers
Diffstat (limited to 'gtk/gtkmountoperation.c')
-rw-r--r--gtk/gtkmountoperation.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index 318e4aeb5b..6137388c0b 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -802,7 +802,7 @@ pid_equal (gconstpointer a,
pa = *((GPid *) a);
pb = *((GPid *) b);
- return pb - pa;
+ return GPOINTER_TO_INT(pb) - GPOINTER_TO_INT(pa);
}
static void
@@ -823,8 +823,8 @@ diff_sorted_arrays (GArray *array1,
while (n1 < array1->len && n2 < array2->len)
{
- order = (*compare) (((gconstpointer) array1->data) + n1 * elem_size,
- ((gconstpointer) array2->data) + n2 * elem_size);
+ order = (*compare) (((const char*) array1->data) + n1 * elem_size,
+ ((const char*) array2->data) + n2 * elem_size);
if (order < 0)
{
g_array_append_val (removed_indices, n1);