From e5c03181ba3cd06f27e10677960575e44e7900a6 Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 8 Aug 2005 07:07:19 +0000 Subject: added wrappers for C library function that take pathname arguments. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@478 ee746299-78ed-0310-b773-934348b2243d --- src/procheader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/procheader.c') diff --git a/src/procheader.c b/src/procheader.c index cf1331cf..4ca1490c 100644 --- a/src/procheader.c +++ b/src/procheader.c @@ -212,7 +212,7 @@ GSList *procheader_get_header_list_from_file(const gchar *file) FILE *fp; GSList *hlist; - if ((fp = fopen(file, "rb")) == NULL) { + if ((fp = g_fopen(file, "rb")) == NULL) { FILE_OP_ERROR(file, "fopen"); return NULL; } @@ -421,14 +421,14 @@ MsgInfo *procheader_parse_file(const gchar *file, MsgFlags flags, FILE *fp; MsgInfo *msginfo; - if (stat(file, &s) < 0) { + if (g_stat(file, &s) < 0) { FILE_OP_ERROR(file, "stat"); return NULL; } if (!S_ISREG(s.st_mode)) return NULL; - if ((fp = fopen(file, "rb")) == NULL) { + if ((fp = g_fopen(file, "rb")) == NULL) { FILE_OP_ERROR(file, "fopen"); return NULL; } -- cgit v1.2.3