diff options
author | Jeremy Allison <jra@samba.org> | 2000-08-14 23:48:07 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-08-14 23:48:07 +0000 |
commit | d8464d49c6356d742208dedeec9bea47068ae14c (patch) | |
tree | 896a599ece8a36f91b170f078ed78314a6a3e6cd /source3/include | |
parent | 3628c65e3c5c26044afa77378dead460013b553c (diff) | |
download | samba-d8464d49c6356d742208dedeec9bea47068ae14c.tar.gz samba-d8464d49c6356d742208dedeec9bea47068ae14c.tar.bz2 samba-d8464d49c6356d742208dedeec9bea47068ae14c.zip |
Reverted the change Luke made. Removed IS_BITS_SET_XX macros.
Do not re-add them. These macros are unsafe as they are not understood.
Change all TNG code using them to correct '&' and '|' please.
IS_BITS_SET_ALL was being used in cmd_interp.c when IS_BITS_SET_SOME
should have been used.
Jeremy.
(This used to be commit be4e5eeb4f808c1d8ac4030e8886a83a37914c57)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/smb_macros.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index 007f88edba..9fe7f26cb3 100644 --- a/source3/include/smb_macros.h +++ b/source3/include/smb_macros.h @@ -30,11 +30,6 @@ #define BITSETB(ptr,bit) ((((char *)ptr)[0] & (1<<(bit)))!=0) #define BITSETW(ptr,bit) ((SVAL(ptr,0) & (1<<(bit)))!=0) -#define IS_BITS_SET_ALL(var,bit) (((var)&(bit))==(bit)) -#define IS_BITS_SET_SOME(var,bit) (((var)&(bit))!=0) -#define IS_BITS_CLR_ALL(var,bit) (((var)&(bit))==0) -#define IS_BITS_CLR_SOME(var,bit) (((var)&(bit))!=(bit)) - /* for readability... */ #define IS_DOS_READONLY(test_mode) (((test_mode) & aRONLY) != 0) #define IS_DOS_DIR(test_mode) (((test_mode) & aDIR) != 0) |