From d5566c6038845e505f7c16130b2368ef9bb3a373 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Fri, 15 Jan 2010 19:11:54 -0800 Subject: Remove struct keyword from all types, use typedef instead. --- src/upb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/upb.c') diff --git a/src/upb.c b/src/upb.c index 2412be3..4cd4bba 100644 --- a/src/upb.c +++ b/src/upb.c @@ -15,7 +15,7 @@ [GOOGLE_PROTOBUF_FIELDDESCRIPTORPROTO_TYPE_ ## proto_type] = \ {alignof(ctype), sizeof(ctype), wire_type, #ctype}, -struct upb_type_info upb_type_info[] = { +upb_type_info upb_types[] = { TYPE_INFO(DOUBLE, UPB_WIRE_TYPE_64BIT, double) TYPE_INFO(FLOAT, UPB_WIRE_TYPE_32BIT, float) TYPE_INFO(INT64, UPB_WIRE_TYPE_VARINT, int64_t) @@ -36,7 +36,7 @@ struct upb_type_info upb_type_info[] = { TYPE_INFO(BYTES, UPB_WIRE_TYPE_DELIMITED, union upb_string*) }; -void upb_seterr(struct upb_status *status, enum upb_status_code code, +void upb_seterr(upb_status *status, enum upb_status_code code, const char *msg, ...) { if(upb_ok(status)) { // The first error is the most interesting. -- cgit v1.2.3