Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/wiretap wtap.c wtap.h

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 4 Jul 2001 19:34:43 -0500 (CDT)
guy         2001/07/04 19:34:43 CDT

  Modified files:
    wiretap              wtap.c wtap.h 
  Log:
  "open_cap_file()" in Ethereal and Tethereal don't use the FILE_T they
  get from calling "wtap_file()", so get rid of the call and the
  (otherwise unused) variable to which its result gets assigned.
  
  That lets us get rid of "wtap_file()" in Wiretap.
  
  It also lets us get rid of the include of "zlib.h" in "file.h"; the
  #defines of "file_open()", "filed_open()", and "file_close()" are also
  unnecessary, so we get rid of those as well.
  
  However, that means we need to include <zlib.h> in "gtk/main.c" and
  "tethereal.c", so that the version number of libz is defined and can
  show up in the version string.
  
  Revision  Changes    Path
  1.53      +1 -7      ethereal/wiretap/wtap.c
  1.87      +1 -2      ethereal/wiretap/wtap.h