summaryrefslogtreecommitdiff
path: root/pbstream.c
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-03-02 11:00:43 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-03-02 11:00:43 -0800
commit6e67cb48ef6b4fceee29e5c1cce3d7939c10b02f (patch)
tree4694b4f578a4611ea1d2fb73000f8fe42ec01eaa /pbstream.c
parent268bb50e8013469bb61eb0e3beeddce365eb7755 (diff)
Fixed bugs that lint caught.
Diffstat (limited to 'pbstream.c')
-rw-r--r--pbstream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbstream.c b/pbstream.c
index 23cff1d..443ba6c 100644
--- a/pbstream.c
+++ b/pbstream.c
@@ -20,7 +20,7 @@
#endif
#define CHECK(func) do { \
- pbstream_wire_type_t status = func; \
+ pbstream_status_t status = func; \
if(status != PBSTREAM_STATUS_OK) return status; \
} while (0)
@@ -235,7 +235,7 @@ pbstream_status_t parse_tag(uint8_t **buf, struct pbstream_tag *tag)
{
uint32_t tag_int;
CHECK(get_v_uint32_t(buf, &tag_int));
- tag->wire_type = tag_int & 0x07;
+ tag->wire_type = (pbstream_wire_type_t)(tag_int & 0x07);
tag->field_number = tag_int >> 3;
return PBSTREAM_STATUS_OK;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback