]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: CHECK_WRITE macro reformatting
authorRalph Boehme <slow@samba.org>
Wed, 1 Apr 2020 13:19:51 +0000 (15:19 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 3 Apr 2020 19:05:42 +0000 (19:05 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/smb_macros.h

index 7a6d30ebc79fff5fbccc0f21c8fc0de99cf8a75a..dff0b8b9600b7ae16c66cbfe9be3715c675f07cc 100644 (file)
@@ -77,7 +77,9 @@
        (((fsp)->fh->fd != -1) && \
         ((fsp)->can_read))
 
-#define CHECK_WRITE(fsp) ((fsp)->can_write && ((fsp)->fh->fd != -1))
+#define CHECK_WRITE(fsp) \
+       ((fsp)->can_write && \
+        ((fsp)->fh->fd != -1))
 
 #define ERROR_WAS_LOCK_DENIED(status) (NT_STATUS_EQUAL((status), NT_STATUS_LOCK_NOT_GRANTED) || \
                                NT_STATUS_EQUAL((status), NT_STATUS_FILE_LOCK_CONFLICT) )