Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/gtk capture_prefs.c prefs_dlg.c

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: Tue, 16 Jul 2002 19:22:31 -0500 (CDT)
guy         2002/07/16 19:22:31 CDT

  Modified files:
    gtk                  capture_prefs.c prefs_dlg.c 
  Log:
  Get rid of some "unused variable" and "unused static function" warnings,
  and some compile errors in Tethereal, when compiling without libpcap.
  
  If libpcap is missing (whether that's detected at compile time or, as on
  Windows, at run time), don't call any of the "capture_prefs" routines -
  the routine to create the capture preferences page wasn't called, so the
  other routines can try to refer to non-existent widgets and other items
  and crash.
  
  Get rid of the stub routines in "capture_prefs()" used when compiling
  without libpcap, as they're no longer called.
  
  Revision  Changes    Path
  1.13      +3 -24     ethereal/gtk/capture_prefs.c
  1.49      +68 -2     ethereal/gtk/prefs_dlg.c