From 808a4e2c3c5d80d6451ed8cce85e302d96225437 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Sun, 29 Mar 2009 22:16:26 +0000 Subject: 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 --- epan/dissectors/packet-csm-encaps.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'epan/dissectors/packet-csm-encaps.c') 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) { -- cgit v1.2.3