From 3429d8b197473aa581ddf3db90626e88ee796d1d Mon Sep 17 00:00:00 2001 From: Robert Edmonds Date: Wed, 19 Mar 2014 15:13:43 -0400 Subject: [PATCH] protobuf-c: rename protobuf_c_message_init_generic() and update the TODO comment this function is now static, so it shouldn't have the "protobuf_c_" prefix in its name. --- protobuf-c/protobuf-c.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/protobuf-c/protobuf-c.c b/protobuf-c/protobuf-c.c index 40470fb..966cab7 100644 --- a/protobuf-c/protobuf-c.c +++ b/protobuf-c/protobuf-c.c @@ -2192,13 +2192,13 @@ parse_member(ScannedMember *scanned_member, } /* - * TODO: expose/use this function if desc->message_init == NULL (which occurs - * for old code, and may be useful for certain programmatic techniques for - * generating descriptors). + * This function is used if desc->message_init == NULL (which occurs for old + * code, and which would be useful to support allocating descriptors + * dynamically). */ static void -protobuf_c_message_init_generic(const ProtobufCMessageDescriptor *desc, - ProtobufCMessage *message) +message_init_generic(const ProtobufCMessageDescriptor *desc, + ProtobufCMessage *message) { unsigned i; @@ -2325,7 +2325,7 @@ protobuf_c_message_unpack(const ProtobufCMessageDescriptor *desc, if (desc->message_init != NULL) protobuf_c_message_init(desc, rv); else - protobuf_c_message_init_generic(desc, rv); + message_init_generic(desc, rv); while (rem > 0) { uint32_t tag;