Wireshark-commits: [Wireshark-commits] rev 20521: /trunk/ /trunk/gtk/: capture_dlg.c capture_if_dlg
Date: Sun, 21 Jan 2007 23:45:37 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=20521

User: guy
Date: 2007/01/21 11:45 PM

Log:
 Have the routines to get interface lists take a pointer to a "gchar *"
 as an argument, and, on an error, if they have an error message, have
 them set that "gchar *" to point to a g_malloc()ed string containing the
 error message, rather than taking a pointer to a buffer for that message
 as an argument.  That's more like what's done in Wiretap, and doesn't
 impose an upper limit on the lengths of those error messages.  If that
 pointer is null, don't allocate the message string and return it.
 
 Have that error message already have the "cant_get" processing applied
 to it, so nobody other than those routines need to call the "cant_get"
 routines to process the error messages.
 
 Have get_airpcap_interface_list() explicitly set "*err" to the
 appropriate error code.
 
 Clean up indentation.

Directory: /trunk/gtk/
  Changes    Path                Action
  +15 -20    capture_dlg.c       Modified
  +25 -34    capture_if_dlg.c    Modified
  +22 -27    capture_prefs.c     Modified
  +4 -5      main.c              Modified

Directory: /trunk/
  Changes    Path                        Action
  +14 -9     airpcap_loader.c            Modified
  +0 -7      airpcap_loader.h            Modified
  +8 -1      capture-pcap-util-int.h     Modified
  +25 -13    capture-pcap-util-unix.c    Modified
  +18 -8     capture-pcap-util.c         Modified
  +2 -15     capture-pcap-util.h         Modified
  +5 -2      capture-wpcap.c             Modified


(2 files not shown)