aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/netxray.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2021-04-16 11:24:52 -0700
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-04-16 20:09:42 +0000
commite513ed41d2c12e5196762911e62a4e9a9206d40e (patch)
tree420772900bdb6237b26041713525e5f75dbaff15 /wiretap/netxray.c
parentc92637bcd82071d7a263597c2d7cbd95b481ee54 (diff)
Wiretap: Fix some compiler warnings.
Make various _dump_can_write_encap and _dump_open routines static. Add a couple of casts.
Diffstat (limited to 'wiretap/netxray.c')
-rw-r--r--wiretap/netxray.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/wiretap/netxray.c b/wiretap/netxray.c
index ed759bf232..e450d703d7 100644
--- a/wiretap/netxray.c
+++ b/wiretap/netxray.c
@@ -1716,7 +1716,7 @@ wtap_encap_to_netxray_1_1_encap(int encap)
/* Returns 0 if we could write the specified encapsulation type,
an error indication otherwise. */
-int
+static int
netxray_dump_can_write_encap_1_1(int encap)
{
/* Per-packet encapsulations aren't supported. */
@@ -1731,7 +1731,7 @@ netxray_dump_can_write_encap_1_1(int encap)
/* Returns TRUE on success, FALSE on failure; sets "*err" to an error code on
failure */
-gboolean
+static gboolean
netxray_dump_open_1_1(wtap_dumper *wdh, int *err, gchar **err_info _U_)
{
netxray_dump_t *netxray;
@@ -1902,7 +1902,7 @@ wtap_encap_to_netxray_2_0_encap(int encap)
/* Returns 0 if we could write the specified encapsulation type,
an error indication otherwise. */
-int
+static int
netxray_dump_can_write_encap_2_0(int encap)
{
/* Per-packet encapsulations aren't supported. */
@@ -1917,7 +1917,7 @@ netxray_dump_can_write_encap_2_0(int encap)
/* Returns TRUE on success, FALSE on failure; sets "*err" to an error code on
failure */
-gboolean
+static gboolean
netxray_dump_open_2_0(wtap_dumper *wdh, int *err, gchar **err_info _U_)
{
netxray_dump_t *netxray;