aboutsummaryrefslogtreecommitdiff
path: root/src/template.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-08-08 07:07:19 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-08-08 07:07:19 +0000
commite5c03181ba3cd06f27e10677960575e44e7900a6 (patch)
treecfa341f7b9c46b2c7b692e11def79e72622152ab /src/template.c
parent38ad5762fb87ec8278108d4a8d06e32612e64a13 (diff)
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
Diffstat (limited to 'src/template.c')
-rw-r--r--src/template.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/template.c b/src/template.c
index 9aafa09d..c2dc9b2e 100644
--- a/src/template.c
+++ b/src/template.c
@@ -40,7 +40,7 @@ static Template *template_load(gchar *filename)
gchar buf[BUFFSIZE];
gint bytes_read;
- if ((fp = fopen(filename, "rb")) == NULL) {
+ if ((fp = g_fopen(filename, "rb")) == NULL) {
FILE_OP_ERROR(filename, "fopen");
return NULL;
}
@@ -136,7 +136,7 @@ GSList *template_read_config(void)
filename = g_strconcat(path, G_DIR_SEPARATOR_S,
de->d_name, NULL);
- if (stat(filename, &s) != 0 || !S_ISREG(s.st_mode) ) {
+ if (g_stat(filename, &s) != 0 || !S_ISREG(s.st_mode) ) {
debug_print("%s:%d %s is not an ordinary file\n",
__FILE__, __LINE__, filename);
continue;
@@ -186,7 +186,7 @@ void template_write_config(GSList *tmpl_list)
filename = g_strconcat(path, G_DIR_SEPARATOR_S,
itos(tmpl_num), NULL);
- if ((fp = fopen(filename, "wb")) == NULL) {
+ if ((fp = g_fopen(filename, "wb")) == NULL) {
FILE_OP_ERROR(filename, "fopen");
g_free(filename);
return;