find_val_for_string() is only used in prefs.c so remove the prototype
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 25 May 2010 20:57:14 +0000 (20:57 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 25 May 2010 20:57:14 +0000 (20:57 +0000)
commit9d5598dcad9af9d6df6e1c7f19343b5af576c658
treead30923c758fed86ac836606e83f0c9461484c51
parentb7d49d5a85fdf8f3b93b8b3111ecb78715123761
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.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32950 f5534014-38df-0310-8fa8-9805f1628bb7
epan/prefs-int.h
epan/prefs.c