Fix C89 issue (#521672) Patch from Jens Granseuer
authorAlexander Larsson <alexl@redhat.com>
Fri, 14 Mar 2008 11:06:01 +0000 (11:06 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Fri, 14 Mar 2008 11:06:01 +0000 (11:06 +0000)
2008-03-14  Alexander Larsson  <alexl@redhat.com>

        * gfilemonitor.c:
        (g_file_monitor_is_cancelled):
Fix C89 issue (#521672)
Patch from Jens Granseuer

svn path=/trunk/; revision=6708

gio/ChangeLog
gio/gfilemonitor.c

index 922e4b5..b94f57b 100644 (file)
@@ -1,5 +1,12 @@
 2008-03-14  Alexander Larsson  <alexl@redhat.com>
 
+        * gfilemonitor.c:
+        (g_file_monitor_is_cancelled):
+       Fix C89 issue (#521672)
+       Patch from Jens Granseuer
+
+2008-03-14  Alexander Larsson  <alexl@redhat.com>
+
         * fam/fam-helper.[ch]:
         * fam/fam-module.c:
        Shut down fam (including removing fam GSource) when
index d61f1f9..1e65352 100644 (file)
@@ -249,9 +249,10 @@ g_file_monitor_init (GFileMonitor *monitor)
 gboolean
 g_file_monitor_is_cancelled (GFileMonitor *monitor)
 {
-  g_return_val_if_fail (G_IS_FILE_MONITOR (monitor), FALSE);
   gboolean res;
 
+  g_return_val_if_fail (G_IS_FILE_MONITOR (monitor), FALSE);
+
   G_LOCK (cancelled);
   res = monitor->priv->cancelled;
   G_UNLOCK (cancelled);