summaryrefslogtreecommitdiff
path: root/proto/bgp/attrs.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-01 10:28:25 +0000
committerOndrej Filip <feela@network.cz>2004-06-01 10:28:25 +0000
commit7fdd338c3600aa4e7a0ae3d5ce270b5a1f8ccc0c (patch)
treee0ea23a1a72ce5de2fded8118f8471690c8b1726 /proto/bgp/attrs.c
parent22122d4d4c43c2c64a37aae597b4d439a6bfa268 (diff)
ALIGN -> BIRD_ALIGN
Diffstat (limited to 'proto/bgp/attrs.c')
-rw-r--r--proto/bgp/attrs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c
index ba3efec4..7fb817a4 100644
--- a/proto/bgp/attrs.c
+++ b/proto/bgp/attrs.c
@@ -327,7 +327,7 @@ bgp_new_bucket(struct bgp_proto *p, ea_list *new, unsigned hash)
{
struct bgp_bucket *b;
unsigned ea_size = sizeof(ea_list) + new->count * sizeof(eattr);
- unsigned ea_size_aligned = ALIGN(ea_size, CPU_STRUCT_ALIGN);
+ unsigned ea_size_aligned = BIRD_ALIGN(ea_size, CPU_STRUCT_ALIGN);
unsigned size = sizeof(struct bgp_bucket) + ea_size;
unsigned i;
byte *dest;
@@ -338,7 +338,7 @@ bgp_new_bucket(struct bgp_proto *p, ea_list *new, unsigned hash)
{
eattr *a = &new->attrs[i];
if (!(a->type & EAF_EMBEDDED))
- size += ALIGN(sizeof(struct adata) + a->u.ptr->length, CPU_STRUCT_ALIGN);
+ size += BIRD_ALIGN(sizeof(struct adata) + a->u.ptr->length, CPU_STRUCT_ALIGN);
}
/* Create the bucket and hash it */
@@ -364,7 +364,7 @@ bgp_new_bucket(struct bgp_proto *p, ea_list *new, unsigned hash)
struct adata *na = (struct adata *) dest;
memcpy(na, oa, sizeof(struct adata) + oa->length);
a->u.ptr = na;
- dest += ALIGN(sizeof(struct adata) + na->length, CPU_STRUCT_ALIGN);
+ dest += BIRD_ALIGN(sizeof(struct adata) + na->length, CPU_STRUCT_ALIGN);
}
}