smbd: ?True:False is pretty pointless :-)
authorVolker Lendecke <vl@samba.org>
Mon, 14 Jul 2014 15:22:01 +0000 (15:22 +0000)
committerStefan Metzmacher <metze@samba.org>
Tue, 22 Jul 2014 13:32:40 +0000 (15:32 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/reply.c

index 68564f69bc0f73112610d342419fe1a3fc40f018..d54326a66bbba780edad232ad4036005d7834ded 100644 (file)
@@ -7885,7 +7885,7 @@ void reply_lockingX(struct smb_request *req)
        num_ulocks = SVAL(req->vwv+6, 0);
        num_locks = SVAL(req->vwv+7, 0);
        lock_timeout = IVAL(req->vwv+4, 0);
-       large_file_format = (locktype & LOCKING_ANDX_LARGE_FILES)?True:False;
+       large_file_format = ((locktype & LOCKING_ANDX_LARGE_FILES) != 0);
 
        if (!check_fsp(conn, req, fsp)) {
                END_PROFILE(SMBlockingX);