[gegl] buffer: use SEEK_SET, not G_SEEK_SET when calling lseek()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: use SEEK_SET, not G_SEEK_SET when calling lseek()
- Date: Fri, 3 Aug 2012 23:34:06 +0000 (UTC)
commit 52c504bbb70e15a7ffcc28d1ece71f480e515ce1
Author: Michael Natterer <mitch gimp org>
Date: Sat Aug 4 01:31:52 2012 +0200
buffer: use SEEK_SET, not G_SEEK_SET when calling lseek()
also improve error message.
gegl/buffer/gegl-tile-backend-file-async.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gegl/buffer/gegl-tile-backend-file-async.c b/gegl/buffer/gegl-tile-backend-file-async.c
index a7f575a..39db5ec 100644
--- a/gegl/buffer/gegl-tile-backend-file-async.c
+++ b/gegl/buffer/gegl-tile-backend-file-async.c
@@ -461,7 +461,7 @@ gegl_tile_backend_file_write_block (GeglTileBackendFile *self,
if (self->out_offset != self->offset)
{
- if (lseek (self->o, self->offset, G_SEEK_SET) == -1)
+ if (lseek (self->o, self->offset, SEEK_SET) == -1)
goto fail;
self->out_offset = self->offset;
@@ -505,7 +505,7 @@ gegl_tile_backend_file_write_block (GeglTileBackendFile *self,
*/
if (self->out_offset != self->offset)
{
- if (lseek (self->o, self->offset, G_SEEK_SET) == -1)
+ if (lseek (self->o, self->offset, SEEK_SET) == -1)
goto fail;
self->out_offset = self->offset;
@@ -515,8 +515,8 @@ gegl_tile_backend_file_write_block (GeglTileBackendFile *self,
return TRUE;
fail:
- g_warning ("gegl buffer index writing problems for %s",
- self->path);
+ g_warning ("failed to lseek() to 0x%x in %s: %s",
+ self->offset, self->path, g_strerror (errno));
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]