summaryrefslogtreecommitdiff
path: root/gtk/updateiconcache.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2008-06-03 11:04:33 +0000
committerTor Lillqvist <tml@src.gnome.org>2008-06-03 11:04:33 +0000
commit727a9145f6f931b6ee7f2fedb9f8b55de306b6ec (patch)
tree3e6601fe3466ad10d4fa8b1f931cc3e5d21704e6 /gtk/updateiconcache.c
parent54d9b4001573a50844946d2acbbd1e62cd95db25 (diff)
downloadgdk-pixbuf-727a9145f6f931b6ee7f2fedb9f8b55de306b6ec.tar.gz
Use g_open().
2008-06-03 Tor Lillqvist <tml@novell.com> * gtk/updateiconcache.c (build_cache): Use g_open(). svn path=/trunk/; revision=20303
Diffstat (limited to 'gtk/updateiconcache.c')
-rw-r--r--gtk/updateiconcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c
index 4d8ce8210..a9381ce74 100644
--- a/gtk/updateiconcache.c
+++ b/gtk/updateiconcache.c
@@ -1449,7 +1449,7 @@ build_cache (const gchar *path)
tmp_cache_path = g_build_filename (path, "."CACHE_NAME, NULL);
- if ((fd = open (tmp_cache_path, O_WRONLY | O_CREAT | O_EXCL | O_TRUNC | _O_BINARY, mode)) == -1)
+ if ((fd = g_open (tmp_cache_path, O_WRONLY | O_CREAT | O_EXCL | O_TRUNC | _O_BINARY, mode)) == -1)
{
g_printerr (_("Failed to open file %s : %s\n"), tmp_cache_path, g_strerror (errno));
exit (1);