aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2015-02-17 21:21:06 +0100
committerMichael Mann <mmann78@netscape.net>2015-02-17 20:30:19 +0000
commite61f3d5e77c879ae81ea1ec65cc702360155d8b0 (patch)
tree920a5fe22aa2dd4d66b27df6c9c0f18ce0097029
parentfd870e34e865e5d8e1114b8b6d9394355989a617 (diff)
802.11: fix no previous prototype for 'wlan_col_filter_str' & 'wlan_bssid_col_filter_str' [-Wmissing-prototypes]
Fix also some indent typo (3spaces -> 2spaces) Change-Id: I1aa9df1540e80946b85dde0e6bd87bf39e8d8f19 Reviewed-on: https://code.wireshark.org/review/7199 Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--epan/dissectors/packet-ieee80211.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-ieee80211.c b/epan/dissectors/packet-ieee80211.c
index eefbb7410d..884f5060fa 100644
--- a/epan/dissectors/packet-ieee80211.c
+++ b/epan/dissectors/packet-ieee80211.c
@@ -5407,7 +5407,7 @@ wlan_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, con
return 1;
}
-const char* wlan_col_filter_str(const address* addr _U_, gboolean is_src)
+static const char* wlan_col_filter_str(const address* addr _U_, gboolean is_src)
{
if (is_src)
return "wlan.sa";
@@ -5415,7 +5415,7 @@ const char* wlan_col_filter_str(const address* addr _U_, gboolean is_src)
return "wlan.da";
}
-const char* wlan_bssid_col_filter_str(const address* addr _U_, gboolean is_src _U_)
+static const char* wlan_bssid_col_filter_str(const address* addr _U_, gboolean is_src _U_)
{
return "wlan.bssid";
}
@@ -5424,25 +5424,25 @@ const char* wlan_bssid_col_filter_str(const address* addr _U_, gboolean is_src _
static void
beacon_interval_base_custom(gchar *result, guint32 beacon_interval)
{
- double temp_double;
+ double temp_double;
- temp_double = (double)beacon_interval;
- g_snprintf(result, ITEM_LABEL_LENGTH, "%f [Seconds]", (temp_double * 1024 / 1000000));
+ temp_double = (double)beacon_interval;
+ g_snprintf(result, ITEM_LABEL_LENGTH, "%f [Seconds]", (temp_double * 1024 / 1000000));
}
static void
allocation_duration_base_custom(gchar *result, guint32 allocation_duration)
{
- double temp_double;
+ double temp_double;
- temp_double = (double)allocation_duration;
- g_snprintf(result, ITEM_LABEL_LENGTH, "%f [Seconds]", (temp_double / 1000000));
+ temp_double = (double)allocation_duration;
+ g_snprintf(result, ITEM_LABEL_LENGTH, "%f [Seconds]", (temp_double / 1000000));
}
static void
extra_one_base_custom(gchar *result, guint32 value)
{
- g_snprintf(result, ITEM_LABEL_LENGTH, "%d", value+1);
+ g_snprintf(result, ITEM_LABEL_LENGTH, "%d", value+1);
}
static void