[gegl] buffer: call g_open with three arguments
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: call g_open with three arguments
- Date: Sun, 5 Aug 2012 15:35:45 +0000 (UTC)
commit fe6ddd940c5068e14bb6e0eeca3e0c86629a8ae3
Author: Michael Henning <drawoc darkrefraction com>
Date: Sat Aug 4 23:54:10 2012 -0400
buffer: call g_open with three arguments
gegl/buffer/gegl-tile-backend-file-async.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/buffer/gegl-tile-backend-file-async.c b/gegl/buffer/gegl-tile-backend-file-async.c
index 39db5ec..ee1098c 100644
--- a/gegl/buffer/gegl-tile-backend-file-async.c
+++ b/gegl/buffer/gegl-tile-backend-file-async.c
@@ -1026,7 +1026,7 @@ gegl_tile_backend_file_constructor (GType type,
if (self->o == -1)
g_warning ("%s: Could not open '%s': %s", G_STRFUNC, self->path, g_strerror (errno));
}
- self->i = g_open (self->path, O_RDONLY);
+ self->i = g_open (self->path, O_RDONLY, 0);
self->header = gegl_buffer_read_header (self->i, &offset, NULL)->header;
self->header.rev = self->header.rev -1;
@@ -1091,7 +1091,7 @@ gegl_tile_backend_file_ensure_exist (GeglTileBackendFile *self)
backend->priv->px_size,
backend->priv->format);
gegl_tile_backend_file_write_header (self);
- self->i = g_open (self->path, O_RDONLY);
+ self->i = g_open (self->path, O_RDONLY, 0);
g_assert (self->i != -1);
g_assert (self->o != -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]