From 85990be2f46e9b2c91ea6a56f4fd549011c50689 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 13 Oct 2003 18:35:08 +0000 Subject: [PATCH] Minor tweak to last commit --- include/lber_pvt.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/lber_pvt.h b/include/lber_pvt.h index e978f15bc2..69eaee3ced 100644 --- a/include/lber_pvt.h +++ b/include/lber_pvt.h @@ -22,10 +22,9 @@ LDAP_BEGIN_DECL /* for allocating aligned buffers (on the stack) */ -#define LBER_ALIGN_BUFFER(uname,size) \ - union LDAP_CONCAT(lber_,uname) { \ +#define LBER_ALIGNED_BUFFER(uname,size) \ + union uname { \ char buffer[size]; \ - \ /* force alignment */ \ int ialign; \ long lalign; \ @@ -35,7 +34,8 @@ LDAP_BEGIN_DECL } #define LBER_ELEMENT_SIZEOF (256) /* must be >= sizeof(BerElement) */ -typedef LBER_ALIGN_BUFFER(berelement_u,LBER_ELEMENT_SIZEOF) BerElementBuffer; +typedef LBER_ALIGNED_BUFFER(lber_berelement_u,LBER_ELEMENT_SIZEOF) + BerElementBuffer; typedef struct sockbuf_buf { ber_len_t buf_size; -- 2.39.5