From 2fdce9196969f13b32d7918401a7dd7dc01e582b Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 17 Dec 2005 17:24:22 +0000 Subject: Use gstdio wrappers. 2005-12-17 Tor Lillqvist * filter-file.c: Use gstdio wrappers. svn path=/trunk/; revision=30833 --- filter/ChangeLog | 4 ++++ filter/filter-file.c | 14 +++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/filter/ChangeLog b/filter/ChangeLog index 5b1babb27a..e9e2341a03 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,7 @@ +2005-12-17 Tor Lillqvist + + * filter-file.c: Use gstdio wrappers. + 2005-08-23 Not Zed * filter-rule.c (get_widget): cast. diff --git a/filter/filter-file.c b/filter/filter-file.c index f4a6ae7ec1..9934d92b54 100644 --- a/filter/filter-file.c +++ b/filter/filter-file.c @@ -21,22 +21,26 @@ */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include #include +#include +#include + #include + #include #include -#include "filter-file.h" -#include "libedataserver/e-sexp.h" +#include + #include "e-util/e-error.h" +#include "filter-file.h" + #define d(x) static gboolean validate (FilterElement *fe); @@ -169,7 +173,7 @@ validate (FilterElement *fe) /* FIXME: do more to validate command-lines? */ if (strcmp (file->type, "file") == 0) { - if (stat (file->path, &st) == -1 || !S_ISREG (st.st_mode)) { + if (g_stat (file->path, &st) == -1 || !S_ISREG (st.st_mode)) { /* FIXME: FilterElement should probably have a GtkWidget member pointing to the value gotten with ::get_widget() so that we can get the parent window -- cgit v1.2.3