Handle the case where dumpcap is compiled without thread support, which
[obnox/wireshark/wip.git] / cfile.c
diff --git a/cfile.c b/cfile.c
index 6ebf3d6d85b98f3b170e04c63dab74beb0bb5376..3463c1d538f17d7011e6b5f6913e5a3788524d5f 100644 (file)
--- a/cfile.c
+++ b/cfile.c
@@ -1,11 +1,11 @@
 /* cfile.c
- * capture_file GUI-independent manipulation 
+ * capture_file GUI-independent manipulation
  * Vassilii Khachaturov <vassilii@tarunz.org>
  *
  * $Id$
  *
- * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
  * This program is free software; you can redistribute it and/or
 # include "config.h"
 #endif
 
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-#include <stdlib.h>
-
 #include <glib.h>
 
 #include <epan/packet.h>
 #include "cfile.h"
 
 void
-init_cap_file(capture_file *cf)
+cap_file_init(capture_file *cf)
 {
   /* Initialize the capture file struct */
-  cf->plist            = NULL;
-  cf->plist_end        = NULL;
-  cf->wth              = NULL;
-  cf->filename = NULL;
-  cf->user_saved       = FALSE;
-  cf->is_tempfile      = FALSE;
-  cf->rfcode           = NULL;
-  cf->dfilter          = NULL;
-  cf->dfcode           = NULL;
-  cf->has_snap = FALSE;
-  cf->snap             = WTAP_MAX_PACKET_SIZE;
-  cf->count            = 0;
-  cf->pstats           = NULL;
+  cf->filename      = NULL;
+  cf->source        = NULL;
+  cf->is_tempfile   = FALSE;
+  cf->user_saved    = FALSE;
+  cf->count         = 0;
+  cf->has_snap      = FALSE;
+  cf->snap          = WTAP_MAX_PACKET_SIZE;
+  cf->wth           = NULL;
+  cf->rfcode        = NULL;
+  cf->dfilter       = NULL;
+  cf->redissecting  = FALSE;
+  cf->frames        = NULL;
 }