summaryrefslogtreecommitdiff
path: root/wiretap/daintree-sna.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2009-12-04 16:56:34 +0000
committerBill Meier <wmeier@newsguy.com>2009-12-04 16:56:34 +0000
commit0f1d360f64cbeeb4cc2b1fc83902d997edceec67 (patch)
tree639feee6ab46a3e83e356bbf4bdf0f9832dd48b0 /wiretap/daintree-sna.c
parent2dd96f051a6e7251f3d7f1539760c39387c211c3 (diff)
downloadwireshark-0f1d360f64cbeeb4cc2b1fc83902d997edceec67.tar.gz
Revise #31172 slightly to clarify #define dependencies
svn path=/trunk/; revision=31173
Diffstat (limited to 'wiretap/daintree-sna.c')
-rw-r--r--wiretap/daintree-sna.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/wiretap/daintree-sna.c b/wiretap/daintree-sna.c
index f85b932b62..c86d6891d0 100644
--- a/wiretap/daintree-sna.c
+++ b/wiretap/daintree-sna.c
@@ -76,16 +76,18 @@ static const char daintree_magic_text[] =
#define DAINTREE_MAGIC_TEXT_SIZE (sizeof daintree_magic_text)
#define DAINTREE_MAX_LINE_SIZE 512
+#define READDATA_BUF_SIZE (DAINTREE_MAX_LINE_SIZE/2)
+#define SEEKDATA_BUF_SIZE (DAINTREE_MAX_LINE_SIZE/2)
+#define READDATA_MAX_FIELD_SIZE "255" /* DAINTREE_MAX_LINE_SIZE/2 -1 */
+#define SEEKDATA_MAX_FIELD_SIZE "255" /* DAINTREE_MAX_LINE_SIZE/2 -1 */
#define COMMENT_LINE daintree_magic_text[0]
static char readLine[DAINTREE_MAX_LINE_SIZE];
static char seekLine[DAINTREE_MAX_LINE_SIZE];
-static char readData[DAINTREE_MAX_LINE_SIZE/2];
-static char seekData[DAINTREE_MAX_LINE_SIZE/2];
-#define READDATA_MAX_FIELD_SIZE "255" /* DAINTREE_MAX_LINE_SIZE/2 -1 */
-#define SEEKDATA_MAX_FIELD_SIZE "255" /* DAINTREE_MAX_LINE_SIZE/2 -1 */
+static char readData[READDATA_BUF_SIZE];
+static char seekData[SEEKDATA_BUF_SIZE];
static gboolean daintree_sna_read(wtap *wth, int *err, gchar **err_info _U_,
gint64 *data_offset);