aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/recent.c
diff options
context:
space:
mode:
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2008-05-22 15:46:27 +0000
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2008-05-22 15:46:27 +0000
commit440ebe03d7ad360327a5752cd79879956f6aea8d (patch)
tree65a7d5c702bf3392494b33ddd7ed43c94e491670 /gtk/recent.c
parent04d3d6b976e89f301cb6b79c3fd81d823d6a32c7 (diff)
Move the file utility functions from wiretap to libwsutil so that
libwireshark (and the plugins using those functions) do not depend on wiretap on Windows. While doing that, rename the eth_* functions to ws_*. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25354 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/recent.c')
-rw-r--r--gtk/recent.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk/recent.c b/gtk/recent.c
index 8f860327a1..afa7334b9b 100644
--- a/gtk/recent.c
+++ b/gtk/recent.c
@@ -40,7 +40,7 @@
#include <epan/column.h>
#include "../simple_dialog.h"
-#include "wiretap/file_util.h"
+#include <wsutil/file_util.h>
#include "gtk/recent.h"
#include "gtk/main.h"
@@ -154,7 +154,7 @@ write_recent(void)
}
rf_path = get_persconffile_path(RECENT_COMMON_FILE_NAME, FALSE, TRUE);
- if ((rf = eth_fopen(rf_path, "w")) == NULL) {
+ if ((rf = ws_fopen(rf_path, "w")) == NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Can't open recent file\n\"%s\": %s.", rf_path,
strerror(errno));
@@ -265,7 +265,7 @@ write_profile_recent(void)
}
rf_path = get_persconffile_path(RECENT_FILE_NAME, TRUE, TRUE);
- if ((rf = eth_fopen(rf_path, "w")) == NULL) {
+ if ((rf = ws_fopen(rf_path, "w")) == NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Can't open recent file\n\"%s\": %s.", rf_path,
strerror(errno));
@@ -768,7 +768,7 @@ recent_read_static(char **rf_path_return, int *rf_errno_return)
/* Read the user's recent file, if it exists. */
*rf_path_return = NULL;
- if ((rf = eth_fopen(rf_path, "r")) != NULL) {
+ if ((rf = ws_fopen(rf_path, "r")) != NULL) {
/* We succeeded in opening it; read it. */
read_prefs_file(rf_path, rf, read_set_recent_common_pair_static, NULL);
@@ -826,13 +826,13 @@ recent_read_profile_static(char **rf_path_return, int *rf_errno_return)
/* Read the user's recent file, if it exists. */
*rf_path_return = NULL;
- if ((rf = eth_fopen(rf_path, "r")) != NULL) {
+ if ((rf = ws_fopen(rf_path, "r")) != NULL) {
/* We succeeded in opening it; read it. */
read_prefs_file(rf_path, rf, read_set_recent_pair_static, NULL);
fclose(rf);
if (!recent.has_recent_common) {
/* Read older common settings from recent file */
- rf = eth_fopen(rf_path, "r");
+ rf = ws_fopen(rf_path, "r");
read_prefs_file(rf_path, rf, read_set_recent_common_pair_static, NULL);
fclose(rf);
}
@@ -866,7 +866,7 @@ recent_read_dynamic(char **rf_path_return, int *rf_errno_return)
/* Read the user's recent file, if it exists. */
*rf_path_return = NULL;
- if ((rf = eth_fopen(rf_path, "r")) != NULL) {
+ if ((rf = ws_fopen(rf_path, "r")) != NULL) {
/* We succeeded in opening it; read it. */
read_prefs_file(rf_path, rf, read_set_recent_pair_dynamic, NULL);
/* set dfilter combobox to have an empty line */