aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-csm-encaps.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2009-03-29 22:16:26 +0000
committerBill Meier <wmeier@newsguy.com>2009-03-29 22:16:26 +0000
commit808a4e2c3c5d80d6451ed8cce85e302d96225437 (patch)
treeadb75ac439ef8b2b6bdc2fe40bbbaa97d1b8d2eb /epan/dissectors/packet-csm-encaps.c
parentf77b5f8d775c532ba1cb7ba75738ee392873345f (diff)
Define certain fcns as static (if not used externally).
Also: whiule we're at it: - fix hf[] blurbs as appropriate to use NULL; - fix some indentation svn path=/trunk/; revision=27890
Diffstat (limited to 'epan/dissectors/packet-csm-encaps.c')
-rw-r--r--epan/dissectors/packet-csm-encaps.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/epan/dissectors/packet-csm-encaps.c b/epan/dissectors/packet-csm-encaps.c
index db68037d41..1004640199 100644
--- a/epan/dissectors/packet-csm-encaps.c
+++ b/epan/dissectors/packet-csm-encaps.c
@@ -170,26 +170,25 @@ static int hf_csm_encaps_param = -1;
static gint ett_csm_encaps = -1;
static gint ett_csm_encaps_control = -1;
-gchar *csm_fc(guint16 fc, guint16 ct);
-gboolean csm_to_host(guint16 fc, guint16 ct);
-
/* returns the command name */
-gchar *csm_fc(guint16 fc, guint16 ct)
+static gchar *
+csm_fc(guint16 fc, guint16 ct)
{
- if (fc == 0x0000) {
- return g_strdup(val_to_str(ct, class_type_vals,
- "0x%04x"));
- } else {
- return g_strdup(val_to_str(fc, function_code_vals,
- "0x%04x"));
- }
+ if (fc == 0x0000) {
+ return g_strdup(val_to_str(ct, class_type_vals,
+ "0x%04x"));
+ } else {
+ return g_strdup(val_to_str(fc, function_code_vals,
+ "0x%04x"));
+ }
}
/* check to see if the message is an exclusive message send to host */
-gboolean csm_to_host(guint16 fc, guint16 ct)
+static gboolean
+csm_to_host(guint16 fc, guint16 ct)
{
if (fc == 0x0000)
{