From: Ralph Boehme Date: Wed, 1 Apr 2020 13:19:51 +0000 (+0200) Subject: smbd: CHECK_WRITE macro reformatting X-Git-Tag: ldb-2.2.0~1005 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=574255a754ab385b213a5ca73e26c8ad5292f249;p=thirdparty%2Fsamba.git smbd: CHECK_WRITE macro reformatting Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index 7a6d30ebc79..dff0b8b9600 100644 --- a/source3/include/smb_macros.h +++ b/source3/include/smb_macros.h @@ -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) )