r25554: Convert last instances of BOOL, True and False to the standard types.
[amitay/samba.git] / source4 / ntvfs / sysdep / inotify.c
index afeb319b353286b7dbc7ca0c3ca23a97b0676f11..3fa710415b822c9829b848e9d9b523f69b345cf6 100644 (file)
@@ -27,6 +27,7 @@
 #include "lib/events/events.h"
 #include "lib/util/dlinklist.h"
 #include "libcli/raw/smb.h"
+#include "param/param.h"
 
 #include <linux/inotify.h>
 #include <asm/unistd.h>
@@ -82,19 +83,19 @@ struct inotify_watch_context {
   see if a particular event from inotify really does match a requested
   notify event in SMB
 */
-static BOOL filter_match(struct inotify_watch_context *w,
+static bool filter_match(struct inotify_watch_context *w,
                         struct inotify_event *e)
 {
        if ((e->mask & w->mask) == 0) {
                /* this happens because inotify_add_watch() coalesces watches on the same
                   path, oring their masks together */
-               return False;
+               return false;
        }
 
        /* SMB separates the filters for files and directories */
        if (e->mask & IN_ISDIR) {
                if ((w->filter & FILE_NOTIFY_CHANGE_DIR_NAME) == 0) {
-                       return False;
+                       return false;
                }
        } else {
                if ((e->mask & IN_ATTRIB) &&
@@ -103,18 +104,18 @@ static BOOL filter_match(struct inotify_watch_context *w,
                                  FILE_NOTIFY_CHANGE_LAST_ACCESS|
                                  FILE_NOTIFY_CHANGE_EA|
                                  FILE_NOTIFY_CHANGE_SECURITY))) {
-                       return True;
+                       return true;
                }
                if ((e->mask & IN_MODIFY) && 
                    (w->filter & FILE_NOTIFY_CHANGE_ATTRIBUTES)) {
-                       return True;
+                       return true;
                }
                if ((w->filter & FILE_NOTIFY_CHANGE_FILE_NAME) == 0) {
-                       return False;
+                       return false;
                }
        }
 
-       return True;
+       return true;
 }
        
 
@@ -244,7 +245,7 @@ static NTSTATUS inotify_setup(struct sys_notify_context *ctx)
 {
        struct inotify_private *in;
 
-       if (!lp_parm_bool(-1, "notify", "inotify", True)) {
+       if (!lp_parm_bool(global_loadparm, NULL, "notify", "inotify", true)) {
                return NT_STATUS_INVALID_SYSTEM_SERVICE;
        }