1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-monitor.c
Maxim Sobolev 343a7d0644 - Don't build included tests - we don't install them anyway;
- check exit code of FAMMonotor*() functions.
2001-12-08 00:58:06 +00:00

26 lines
753 B
C

$FreeBSD$
--- libnautilus-private/nautilus-monitor.c 2001/12/07 22:54:34 1.1
+++ libnautilus-private/nautilus-monitor.c 2001/12/07 23:10:06
@@ -274,7 +274,8 @@
}
monitor = g_new0 (NautilusMonitor, 1);
- FAMMonitorFile (connection, path, &monitor->request, NULL);
+ if (FAMMonitorFile (connection, path, &monitor->request, NULL) == -1)
+ return NULL;
g_free (path);
@@ -314,7 +315,8 @@
}
monitor = g_new0 (NautilusMonitor, 1);
- FAMMonitorDirectory (connection, path, &monitor->request, NULL);
+ if (FAMMonitorDirectory (connection, path, &monitor->request, NULL) == -1)
+ return NULL;
g_assert (g_hash_table_lookup (get_request_hash_table (),
GINT_TO_POINTER (FAMREQUEST_GETREQNUM (&monitor->request))) == NULL);