From: Andreas Schneider Date: Thu, 20 Dec 2018 09:01:03 +0000 (+0100) Subject: lib:util: Remove unused ALIGN marcos from byteorder.h X-Git-Tag: ldb-2.0.5~774 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be589a1fd4d8dfba2d16f8e62bb7e63e114ec16f;p=thirdparty%2Fsamba.git lib:util: Remove unused ALIGN marcos from byteorder.h Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/lib/util/byteorder.h b/lib/util/byteorder.h index 8656035693d..3933926cf54 100644 --- a/lib/util/byteorder.h +++ b/lib/util/byteorder.h @@ -179,11 +179,6 @@ static __inline__ void st_le32(uint32_t *addr, const uint32_t val) #define RSBVAL(buf,pos,val) SBVAL(buf,pos,BREV(val)) #define RSBVALS(buf,pos,val) SBVALS(buf,pos,BREV(val)) -/* Alignment macros. */ -#define ALIGN4(p,base) ((p) + ((4 - (PTR_DIFF((p), (base)) & 3)) & 3)) -#define ALIGN2(p,base) ((p) + ((2 - (PTR_DIFF((p), (base)) & 1)) & 1)) - - /* macros for accessing SMB protocol elements */ #define VWV(vwv) ((vwv)*2)