summaryrefslogtreecommitdiff
path: root/rsync.h
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-12-12 20:17:02 +0000
committerWayne Davison <wayned@samba.org>2006-12-12 20:17:02 +0000
commit0a62f5f38237a5b9a10d1c75f4b624c0035431a3 (patch)
tree2907c548dcee0b86c66569e173776e281f401e22 /rsync.h
parent234844915e81c9ebc3e95b2e312982d3d1eb59a3 (diff)
downloadrsync-0a62f5f38237a5b9a10d1c75f4b624c0035431a3.tar.gz
rsync-0a62f5f38237a5b9a10d1c75f4b624c0035431a3.tar.bz2
rsync-0a62f5f38237a5b9a10d1c75f4b624c0035431a3.zip
Added BITS_EQUAL() define.
Diffstat (limited to 'rsync.h')
-rw-r--r--rsync.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rsync.h b/rsync.h
index e5a40194..a5092426 100644
--- a/rsync.h
+++ b/rsync.h
@@ -70,6 +70,8 @@
#define BITS_SET(val,bits) (((val) & (bits)) == (bits))
#define BITS_SETnUNSET(val,onbits,offbits) (((val) & ((onbits)|(offbits))) == (onbits))
+#define BITS_EQUAL(b1,b2,mask) (((unsigned)(b1) & (unsigned)(mask)) \
+ == ((unsigned)(b2) & (unsigned)(mask)))
/* update this if you make incompatible changes */
#define PROTOCOL_VERSION 30