Commit 79f2767e authored by Robert Edmonds's avatar Robert Edmonds

remove alloca() remnants

parent 5f122c44
......@@ -51,14 +51,6 @@
#include <stdio.h> /* for occasional printf()s */
#include <stdlib.h> /* for abort(), malloc() etc */
#include <string.h> /* for strlen(), memcpy(), memmove() */
#if 0 /* we no longer use alloca. */
#if HAVE_ALLOCA_H
#include <alloca.h>
#elif HAVE_MALLOC_H
#include <malloc.h>
#endif
#endif
#ifndef PRINT_UNPACK_ERRORS
#define PRINT_UNPACK_ERRORS 1
......@@ -2288,7 +2280,6 @@ protobuf_c_message_unpack (const ProtobufCMessageDescriptor *desc,
}
which_slab++;
size = sizeof(ScannedMember) << (which_slab+FIRST_SCANNED_MEMBER_SLAB_SIZE_LOG2);
/* TODO: consider using alloca() ! */
if (allocator->tmp_alloc != NULL)
scanned_member_slabs[which_slab] = TMPALLOC(allocator, size);
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment