summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/gamin/files/gamin-0.0.26-inotify_use_fd.patch')
-rw-r--r--app-admin/gamin/files/gamin-0.0.26-inotify_use_fd.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/app-admin/gamin/files/gamin-0.0.26-inotify_use_fd.patch b/app-admin/gamin/files/gamin-0.0.26-inotify_use_fd.patch
index b40ede6f1a01..20cd88e82b2e 100644
--- a/app-admin/gamin/files/gamin-0.0.26-inotify_use_fd.patch
+++ b/app-admin/gamin/files/gamin-0.0.26-inotify_use_fd.patch
@@ -12,19 +12,19 @@ diff -u -r1.13 gam_inotify.c
- iwr.name = g_strdup(path);
- iwr.mask = 0xffffffff; // all events
+ {
-+ int fd = open(path, O_RDONLY);
++ int file_fd = open(path, O_RDONLY);
- wd = ioctl(fd, INOTIFY_WATCH, &iwr);
- g_free(iwr.name);
-+ if (fd < 0) {
++ if (file_fd < 0) {
+ G_UNLOCK(inotify);
+ return;
+ }
+
-+ iwr.fd = fd;
++ iwr.fd = file_fd;
+ iwr.mask = 0xffffffff; // all events
+ wd = ioctl(fd, INOTIFY_WATCH, &iwr);
-+ close (fd);
++ close (file_fd);
+ }
if (wd < 0) {