diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-11-06 22:43:25 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-11-06 22:43:25 +0000 |
commit | c3187174bfe39f05c8aa8c6b411952e4b502477d (patch) | |
tree | 0eb95991cb932d74ca534ed0df29a3f2f256b1b8 /gtk/graph_analysis.c | |
parent | 4e954caec384454ebf4eb61140c466e8787daabe (diff) | |
download | wireshark-c3187174bfe39f05c8aa8c6b411952e4b502477d.tar.gz wireshark-c3187174bfe39f05c8aa8c6b411952e4b502477d.tar.bz2 wireshark-c3187174bfe39f05c8aa8c6b411952e4b502477d.zip |
replace *a lot* of file related calls by their GLib counterparts. This is necessary for the switch to GTK 2.6 (at least on WIN32).
to do this, I've added file_util.h to wiretap (would file_compat.h be a better name?), and provide compat_macros like eth_open() instead of open(). While at it, move other file related things there, like #include <io.h>, definition of O_BINARY and alike, so it's all in one place.
deleted related things from config.h.win32
As of these massive changes, I'm almost certain that this will break the Unix build. I'll keep an eye on the buildbot so hopefully everything is working again soon.
svn path=/trunk/; revision=16403
Diffstat (limited to 'gtk/graph_analysis.c')
-rw-r--r-- | gtk/graph_analysis.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/graph_analysis.c b/gtk/graph_analysis.c index 624debaa7b..ff4716a56f 100644 --- a/gtk/graph_analysis.c +++ b/gtk/graph_analysis.c @@ -57,6 +57,7 @@ #include "compat_macros.h" #include "../color.h" #include "epan/filesystem.h" +#include "file_util.h" #include <string.h> @@ -294,7 +295,7 @@ static gboolean dialog_graph_dump_to_file(graph_analysis_data_t* user_data) FILE *of; - of = fopen(user_data->dlg.save_file,"w"); + of = eth_fopen(user_data->dlg.save_file,"w"); if (of==NULL){ return FALSE; } @@ -526,7 +527,7 @@ static void save_to_file_ok_cb(GtkWidget *ok_bt _U_, gpointer user_data _U_) /* check whether the file exists */ - file_test = fopen(user_data_p->dlg.save_file,"r"); + file_test = eth_fopen(user_data_p->dlg.save_file,"r"); if (file_test!=NULL){ dialog = simple_dialog(ESD_TYPE_CONFIRMATION, ESD_BTNS_YES_NO, |