Fix warning message about data type always true.
authorJeremy Allison <jra@samba.org>
Tue, 11 Dec 2007 23:10:37 +0000 (15:10 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 11 Dec 2007 23:10:37 +0000 (15:10 -0800)
Jeremy.
(This used to be commit 0a3be0aad7220eb97fe39460e20f36c8ae9ce474)

source3/modules/vfs_full_audit.c

index 533ac712cabc4f729b7500692e457c49c70f6ac2..f4aeefbbf054352bf898a69e8386ca0ad6c858d6 100644 (file)
@@ -1372,7 +1372,7 @@ static bool smb_full_audit_lock(vfs_handle_struct *handle, files_struct *fsp, in
 
        result = SMB_VFS_NEXT_LOCK(handle, fsp, fd, op, offset, count, type);
 
-       do_log(SMB_VFS_OP_LOCK, (result >= 0), handle, "%s", fsp->fsp_name);
+       do_log(SMB_VFS_OP_LOCK, result, handle, "%s", fsp->fsp_name);
 
        return result;
 }
@@ -1411,7 +1411,7 @@ static bool smb_full_audit_getlock(vfs_handle_struct *handle, files_struct *fsp,
 
        result = SMB_VFS_NEXT_GETLOCK(handle, fsp, fd, poffset, pcount, ptype, ppid);
 
-       do_log(SMB_VFS_OP_GETLOCK, (result >= 0), handle, "%s", fsp->fsp_name);
+       do_log(SMB_VFS_OP_GETLOCK, result, handle, "%s", fsp->fsp_name);
 
        return result;
 }