From eaec9bb86e7ccbeef94d6256c27edc549b785962 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 15 Dec 2006 22:13:53 +0000 Subject: [PATCH] Avoid a compiler warning. 2006-12-15 Matthias Clasen * glib/guniprop.c (interval_compare): Avoid a compiler warning. --- ChangeLog | 3 +++ glib/guniprop.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 73be3e436..9ee73af55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-12-15 Matthias Clasen + * glib/guniprop.c (interval_compare): Avoid a compiler + warning. + * glib/gspawn.c (do_exec): Call set_cloexec() with the right parameters. (#386252, Guillaume Desmottes) diff --git a/glib/guniprop.c b/glib/guniprop.c index 6bbd9679d..f2f64172a 100644 --- a/glib/guniprop.c +++ b/glib/guniprop.c @@ -390,7 +390,7 @@ static int interval_compare (const void *key, const void *elt) { gunichar c = GPOINTER_TO_UINT (key); - struct Interval *interval = elt; + struct Interval *interval = (struct Interval *)elt; if (c < interval->start) return -1; -- GitLab