Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-commits: [Wireshark-commits] rev 32950: /trunk/epan/ /trunk/epan/: prefs-int.h prefs.c

Date: Tue, 25 May 2010 20:57:16 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=32950

User: morriss
Date: 2010/05/25 01:57 PM

Log:
 find_val_for_string() is only used in prefs.c so remove the prototype
 and make it static.
 
 When reading enum preferences, use the current value of the preference as the
 default value of the preference instead of a hard-coded 1.  This way if we
 couldn't find the appropriate value we'll don't end up changing the preference
 to something that may or may not make sense.

Directory: /trunk/epan/
  Changes    Path           Action
  +1 -5      prefs-int.h    Modified
  +4 -4      prefs.c        Modified