Fix C89 issue (#521672) Patch from Jens Granseuer

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
This commit is contained in:
Alexander Larsson 2008-03-14 11:06:01 +00:00 committed by Alexander Larsson
parent 6fc66109a0
commit 6088f22d26
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
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]:

View 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);