From 871d67873862b4690130e0114859e1eee8b3d33f Mon Sep 17 00:00:00 2001 From: Robert Edmonds Date: Mon, 13 Jan 2014 14:19:28 -0500 Subject: [PATCH] protobuf-c: remove UNALIGNED_ALLOC, DO_UNALIGNED_ALLOC macros --- protobuf-c/protobuf-c.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/protobuf-c/protobuf-c.c b/protobuf-c/protobuf-c.c index 3f05cfa..1289767 100644 --- a/protobuf-c/protobuf-c.c +++ b/protobuf-c/protobuf-c.c @@ -97,9 +97,6 @@ do { \ ((allocator)->free((allocator)->allocator_data, (ptr)));\ } while (0) -#define UNALIGNED_ALLOC(allocator, size) ALLOC(allocator, size) -#define DO_UNALIGNED_ALLOC DO_ALLOC - #define STRUCT_MEMBER_P(struct_p, struct_offset) \ ((void *) ((uint8_t *) (struct_p) + (struct_offset))) @@ -2207,8 +2204,7 @@ parse_member(ScannedMember *scanned_member, ufield->tag = scanned_member->tag; ufield->wire_type = scanned_member->wire_type; ufield->len = scanned_member->len; - DO_UNALIGNED_ALLOC(ufield->data, allocator, - scanned_member->len, return 0); + DO_ALLOC(ufield->data, allocator, scanned_member->len, return 0); memcpy(ufield->data, scanned_member->data, ufield->len); return 1; }