diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-10-16 20:56:11 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-10-16 19:58:42 +0000 |
commit | 0a3cf5d5cf09c17afd06c64172780b4a02acdb62 (patch) | |
tree | 78dae24386fa874d664f5902f20aab55c8d32138 | |
parent | dbbaa41362647569c0087c212e908c2ac570cbb7 (diff) |
protobuf: no previous prototype for ‘sint64_decode/sint32_decode’ [-Wmissing-prototypes]
Change-Id: I85be2eb645ab00d711f525d711ebf90f200595cc
Reviewed-on: https://code.wireshark.org/review/23943
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r-- | epan/dissectors/packet-protobuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-protobuf.c b/epan/dissectors/packet-protobuf.c index 4ee4ea56ba..4af752c407 100644 --- a/epan/dissectors/packet-protobuf.c +++ b/epan/dissectors/packet-protobuf.c @@ -185,13 +185,13 @@ protobuf_find_field_info(const gchar* call_path_direction_type, int field_number * value (for instance, -1) have a small varint encoded value too. (refers to protobuf spec) * sint32 encoded using (n << 1) ^ (n >> 31) */ -gint32 +static gint32 sint32_decode(guint32 sint32) { return (sint32 >> 1) ^ ((gint32)sint32 << 31 >> 31); } /* sint64 encoded using (n << 1) ^ (n >> 63) */ -gint64 +static gint64 sint64_decode(guint64 sint64) { return (sint64 >> 1) ^ ((gint64)sint64 << 63 >> 63); } |