Mark variables as static
authorkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 24 Feb 2010 08:46:29 +0000 (08:46 +0000)
committerkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 24 Feb 2010 08:46:29 +0000 (08:46 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31983 f5534014-38df-0310-8fa8-9805f1628bb7

epan/reassemble_test.c

index 17ee34e446b1e4bd1212d8119d2164f3038f6b32..caa3eee23209e38da5298e4648a5f568018dacfd 100644 (file)
@@ -53,7 +53,7 @@
 #define ASSERT_EQ(exp,act) do_test((exp)==(act),"Assertion failed at line %i: %s==%s (%i==%i)\n", __LINE__, #exp, #act, exp, act)
 #define ASSERT_NE(exp,act) do_test((exp)!=(act),"Assertion failed at line %i: %s!=%s (%i!=%i)\n", __LINE__, #exp, #act, exp, act)
 
-int failure = 0;
+static int failure = 0;
 
 static void
 do_test(gboolean condition, const char *format, ...)
@@ -77,14 +77,15 @@ do_test(gboolean condition, const char *format, ...)
 
 #define DATA_LEN 256
 
-char *data;
-tvbuff_t *tvb;
-packet_info pinfo;
+static char *data;
+static tvbuff_t *tvb;
+static packet_info pinfo;
 
 /* fragment_table maps from datagram ids to head of fragment_data list
    reassembled_table maps from <packet number,datagram id> to head of
    fragment_data list */
-GHashTable *fragment_table = NULL, *reassembled_table = NULL;
+static GHashTable *fragment_table;
+static GHashTable *reassembled_table;
 
 /**********************************************************************************
  *