Mark variables as static

svn path=/trunk/; revision=31983
This commit is contained in:
Kovarththanan Rajaratnam 2010-02-24 08:46:29 +00:00
parent 8a7dedfab4
commit 7f27653f4b
1 changed files with 6 additions and 5 deletions

View 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_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) #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 static void
do_test(gboolean condition, const char *format, ...) do_test(gboolean condition, const char *format, ...)
@ -77,14 +77,15 @@ do_test(gboolean condition, const char *format, ...)
#define DATA_LEN 256 #define DATA_LEN 256
char *data; static char *data;
tvbuff_t *tvb; static tvbuff_t *tvb;
packet_info pinfo; static packet_info pinfo;
/* fragment_table maps from datagram ids to head of fragment_data list /* fragment_table maps from datagram ids to head of fragment_data list
reassembled_table maps from <packet number,datagram id> to head of reassembled_table maps from <packet number,datagram id> to head of
fragment_data list */ fragment_data list */
GHashTable *fragment_table = NULL, *reassembled_table = NULL; static GHashTable *fragment_table;
static GHashTable *reassembled_table;
/********************************************************************************** /**********************************************************************************
* *