#include <glib.h>
#include <stdio.h>
+#include <stdlib.h>
#include <ctype.h>
#include <string.h>
-#include <epan/filesystem.h>
+#include <wsutil/filesystem.h>
#include <wsutil/file_util.h>
#include <epan/packet.h>
dfilter_t *temp_dfilter;
if (!dfilter_compile(filter_exp, &temp_dfilter)) {
- g_warning("Could not compile color filter \"%s\" from saved filters: %s",
+ g_warning("Could not compile \"%s\" in colorfilters file.\n%s",
name, dfilter_error_msg);
+ prefs.unknown_colorfilters = TRUE;
+
skip_end_of_line = TRUE;
continue;
}
gboolean ret;
/* decide what file to open (from dfilter code) */
- path = get_persconffile_path("colorfilters", TRUE, FALSE);
+ path = get_persconffile_path("colorfilters", TRUE);
if ((f = ws_fopen(path, "r")) == NULL) {
if (errno != ENOENT) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
return FALSE;
}
- path = get_persconffile_path("colorfilters", TRUE, TRUE);
+ path = get_persconffile_path("colorfilters", TRUE);
if ((f = ws_fopen(path, "w+")) == NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Could not open\n%s\nfor writing: %s.",