diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-01-03 06:29:39 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-01-03 06:29:39 +0000 |
commit | 32063976966788167a9c0672985e101e7b4a0d2c (patch) | |
tree | e4574fea9d9f020a19787b715c774abd43b31570 /prefs.h | |
parent | ac62c670c3b2c37f4b1ebdd7c6b98592f028612a (diff) |
Don't have "write_prefs()" display a dialog box if the attempt to open
the preferences file fails, have it return an error indication and the
path of the preferences file, and have its caller display the dialog
box. That way you don't have to drag in the dialog box code if you're
going to use the preferences code in, say, a "line-mode" Ethereal.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1413 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'prefs.h')
-rw-r--r-- | prefs.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* prefs.h * Definitions for preference handling routines * - * $Id: prefs.h,v 1.13 1999/12/30 23:02:39 gram Exp $ + * $Id: prefs.h,v 1.14 2000/01/03 06:29:33 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -54,6 +54,6 @@ typedef struct _e_prefs { extern e_prefs prefs; e_prefs* read_prefs(char **); -void write_prefs(void); +int write_prefs(char **); #endif /* prefs.h */ |