diff options
author | Evan Huus <eapache@gmail.com> | 2014-02-25 16:44:29 -0500 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-02-25 21:46:55 +0000 |
commit | d5c437e8e575006a4dbc3aa9574fd8261f4c87a0 (patch) | |
tree | 21a55d9dc4390f8ad8eabd81caef7907d0ac4f85 /epan | |
parent | 795565491157c253081560209de765b1a98c1c56 (diff) | |
download | wireshark-d5c437e8e575006a4dbc3aa9574fd8261f4c87a0.tar.gz |
Fix function prototypes.
Functions with no parameters must be written func(void). Fixes (some) of the
buildbots.
Change-Id: I1a6e5c0553e032e99419fe67eb4b573bbdfe7fe6
Reviewed-on: https://code.wireshark.org/review/388
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/packet.c | 2 | ||||
-rw-r--r-- | epan/packet.h | 2 | ||||
-rw-r--r-- | epan/tap.c | 2 | ||||
-rw-r--r-- | epan/tap.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/epan/packet.c b/epan/packet.c index 881fb6df3c..c4279fff07 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -2128,7 +2128,7 @@ dissector_handle_get_protocol_index(const dissector_handle_t handle) is owned by the hash table and should not be modified or freed. Use g_list_free() when done using the list. */ GList* -get_dissector_names() +get_dissector_names(void) { return g_hash_table_get_keys(registered_dissectors); } diff --git a/epan/packet.h b/epan/packet.h index eb9ff2997a..20d665b83d 100644 --- a/epan/packet.h +++ b/epan/packet.h @@ -415,7 +415,7 @@ WS_DLL_PUBLIC const char *dissector_handle_get_short_name(const dissector_handle WS_DLL_PUBLIC int dissector_handle_get_protocol_index(const dissector_handle_t handle); /* Get a GList of all registered dissector names. */ -GList* get_dissector_names(); +WS_DLL_PUBLIC GList* get_dissector_names(void); /* Find a dissector by name. */ WS_DLL_PUBLIC dissector_handle_t find_dissector(const char *name); diff --git a/epan/tap.c b/epan/tap.c index 564254802b..851675c87b 100644 --- a/epan/tap.c +++ b/epan/tap.c @@ -425,7 +425,7 @@ draw_tap_listeners(gboolean draw_all) is owned by the tap table and should not be modified or freed. Use g_list_free() when done using the list. */ GList* -get_tap_names() +get_tap_names(void) { GList *list = NULL; tap_dissector_t *td; diff --git a/epan/tap.h b/epan/tap.h index 00f03465f7..b8591148c0 100644 --- a/epan/tap.h +++ b/epan/tap.h @@ -79,7 +79,7 @@ extern void tap_init(void); WS_DLL_PUBLIC int register_tap(const char *name); /* Gets a GList of the tap names */ -GList* get_tap_names(); +WS_DLL_PUBLIC GList* get_tap_names(void); /** This function will return the tap_id for the specific protocol tap * or 0 if no such tap was found. |