summaryrefslogtreecommitdiffstats
path: root/src/sh_fInotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sh_fInotify.c')
-rw-r--r--src/sh_fInotify.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sh_fInotify.c b/src/sh_fInotify.c
index 67162e7..8cdadf8 100644
--- a/src/sh_fInotify.c
+++ b/src/sh_fInotify.c
@@ -196,13 +196,13 @@ int sh_fInotify_run()
/* Blocking read from inotify file descriptor.
*/
- len = sh_inotify_read_timeout(buffer, 16384, 1);
+ len = sh_inotify_read_timeout (buffer, 16384, 1);
if (len > 0)
{
struct inotify_event *event;
- int i = 0;
-
+ long i = 0;
+
while (i < len)
{
event = (struct inotify_event *) &(buffer[i]);