Move declaration of void ftype_register_* to ftypes-int.h.
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 23 Jul 2005 06:21:17 +0000 (06:21 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 23 Jul 2005 06:21:17 +0000 (06:21 +0000)
This fixes some warnings like
ftype-bytes.c:52: warning: no previous declaration for 'bytes_fvalue_free'

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15010 f5534014-38df-0310-8fa8-9805f1628bb7

epan/ftypes/ftype-bytes.c
epan/ftypes/ftypes-int.h
epan/ftypes/ftypes.c

index 867c1008b15a7676704df735f813fa98d19c4a40..72857de0b2d2d7fc1b598c730306b052ddb4f875 100644 (file)
@@ -47,7 +47,7 @@ bytes_fvalue_new(fvalue_t *fv)
        fv->value.bytes = NULL;
 }
 
-void
+static void
 bytes_fvalue_free(fvalue_t *fv)
 {
        if (fv->value.bytes) {
index 3f0411c7f03db426efcc54c59158626bb8ee73fd..c6928b535eec5a6e82e95cdc336d82d91c4bba9a 100644 (file)
@@ -43,4 +43,18 @@ struct _pcre_tuple_t {
 void
 ftype_register(enum ftenum ftype, ftype_t *ft);
 
+/* These are the ftype registration functions that need to be called.
+ * This list and the initialization function could be produced
+ * via a script, like the dissector registration, but there's so few
+ * that I don't mind doing it by hand for now. */
+void ftype_register_bytes(void);
+void ftype_register_double(void);
+void ftype_register_integers(void);
+void ftype_register_ipv4(void);
+void ftype_register_none(void);
+void ftype_register_string(void);
+void ftype_register_time(void);
+void ftype_register_tvbuff(void);
+void ftype_register_pcre(void);
+
 #endif
index e4472137aa4fe214fdfabda3ce96cc82ccc962b1..154ffe802d0f788bb1037f47c88154dec30b7427 100644 (file)
@@ -34,20 +34,6 @@ static ftype_t* type_list[FT_NUM_TYPES];
 /* Space for quickly allocating/de-allocating fvalue_t's */
 SLAB_FREE_LIST_DEFINE(fvalue_t)
 
-/* These are the ftype registration functions that need to be called.
- * This list and the initialization function could be produced
- * via a script, like the dissector registration, but there's so few
- * that I don't mind doing it by hand for now. */
-void ftype_register_bytes(void);
-void ftype_register_double(void);
-void ftype_register_integers(void);
-void ftype_register_ipv4(void);
-void ftype_register_none(void);
-void ftype_register_string(void);
-void ftype_register_time(void);
-void ftype_register_tvbuff(void);
-void ftype_register_pcre(void);
-
 /* Initialize the ftype module. */
 void
 ftypes_initialize(void)