diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-12-17 22:07:32 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-12-17 22:07:32 +0000 |
commit | e6d09c163454627e8caedc8b58836f9071073c6e (patch) | |
tree | f7dd74e1d7000bdf1fcc3730f894157f53b7c68e /asn1/h248/packet-h248-template.c | |
parent | be09c39208963340b9e4aad210facbeeeffd2d46 (diff) |
Make local functions static. Include *.h when needed.
svn path=/trunk/; revision=54201
Diffstat (limited to 'asn1/h248/packet-h248-template.c')
-rw-r--r-- | asn1/h248/packet-h248-template.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/asn1/h248/packet-h248-template.c b/asn1/h248/packet-h248-template.c index 7d18842906..253b9fbf7a 100644 --- a/asn1/h248/packet-h248-template.c +++ b/asn1/h248/packet-h248-template.c @@ -39,6 +39,8 @@ #define PSNAME "H248" #define PFNAME "h248" +void proto_register_h248(void); + /* Initialize the protocol and registered fields */ static int proto_h248 = -1; static int hf_248_magic_num = -1; @@ -879,7 +881,7 @@ static int dissect_h248_ctx_id(gboolean implicit_tag, packet_info *pinfo, proto_ return offset; } -s_h248_package_t *s_find_package_id(guint16 pkgid) { +static s_h248_package_t *s_find_package_id(guint16 pkgid) { s_h248_package_t *s_pkg = NULL; s_pkg = (s_h248_package_t *)g_tree_lookup(packages, GUINT_TO_POINTER((guint32)(pkgid))); return s_pkg; @@ -896,7 +898,7 @@ static gint32 comparePkgID(gconstpointer a, gconstpointer b) { return GPOINTER_TO_UINT(b) - GPOINTER_TO_UINT(a); } -gboolean is_pkg_default(guint16 pkgid) { +static gboolean is_pkg_default(guint16 pkgid) { s_h248_package_t *s_pkg = NULL; s_pkg = (s_h248_package_t *)g_tree_lookup(packages, GUINT_TO_POINTER((guint32)(pkgid))); if(! s_pkg ) return TRUE; |