[gvfs] Return proper type from g_daemon_file_monitor_{dir,file}



commit ee43020b58cd0fd02a2b53b88e8c878f4230d47e
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Sun Mar 29 17:41:29 2015 +0200

    Return proper type from g_daemon_file_monitor_{dir,file}
    
    These functions return pointers, so it's better to return NULL rather
    than FALSE.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747360

 client/gdaemonfile.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c
index 6de410b..40341ae 100644
--- a/client/gdaemonfile.c
+++ b/client/gdaemonfile.c
@@ -3090,7 +3090,7 @@ g_daemon_file_monitor_dir (GFile* file,
 
   proxy = create_proxy_for_file (file, &mount_info, &path, NULL, cancellable, error);
   if (proxy == NULL)
-    return FALSE;
+    return NULL;
 
   
   res = gvfs_dbus_mount_call_create_directory_monitor_sync (proxy,
@@ -3143,7 +3143,7 @@ g_daemon_file_monitor_file (GFile* file,
 
   proxy = create_proxy_for_file (file, &mount_info, &path, NULL, cancellable, error);
   if (proxy == NULL)
-    return FALSE;
+    return NULL;
 
   
   res = gvfs_dbus_mount_call_create_file_monitor_sync (proxy,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]