diff options
author | Evan Huus <evan.huus@jadedpixel.com> | 2014-06-19 18:19:09 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-06-19 18:24:09 +0000 |
commit | 3557ac4ec688b86ec7819005a3a181600e056251 (patch) | |
tree | f9d74b461e5991150164f229093e35ae7f723221 /epan/oids_test.c | |
parent | c95ff6b42f87fd5cc599ef3d43e281683ae9d641 (diff) | |
download | wireshark-3557ac4ec688b86ec7819005a3a181600e056251.tar.gz |
Fix warnings in test binaries
They aren't built with the same warning flags as normal, but if you add those
flags a bunch of warnings show up.
Change-Id: If3776fbd98cc45e473f055e07c86ea8f6a5034f7
Reviewed-on: https://code.wireshark.org/review/2432
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/oids_test.c')
-rw-r--r-- | epan/oids_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/oids_test.c b/epan/oids_test.c index b01d3be223..550bbfd5b1 100644 --- a/epan/oids_test.c +++ b/epan/oids_test.c @@ -321,8 +321,8 @@ oids_test_2resolved_string(void) static void oids_test_2both_subids(void) { - gchar* resolved; - gchar* oid; + const gchar* resolved; + const gchar* oid; oid_both(ex1.subids_len, ex1.subids, &resolved, &oid); g_assert_cmpstr(resolved, ==, ex1.resolved); @@ -332,8 +332,8 @@ oids_test_2both_subids(void) static void oids_test_2both_encoded(void) { - gchar* resolved; - gchar* oid; + const gchar* resolved; + const gchar* oid; oid_both_from_encoded(ex1.encoded, ex1.encoded_len, &resolved, &oid); g_assert_cmpstr(resolved, ==, ex1.resolved); |