diff options
author | Colin Walters <walters@verbum.org> | 2013-08-15 14:21:26 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-08-15 14:21:26 -0400 |
commit | a04bda126c828d998fa86633f638c0e01085823e (patch) | |
tree | 14e1df6e5da82df9c1d75372d4bba6b1f2d704e9 | |
parent | 6bb4ea46abd9d5b6dfef821a398af8831e50f97a (diff) | |
download | ostree-a04bda126c828d998fa86633f638c0e01085823e.tar.gz |
core: Use gs_stream_fstat()
Just a cleanup.
-rw-r--r-- | src/libostree/ostree-core.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libostree/ostree-core.c b/src/libostree/ostree-core.c index 51767538..59779b1c 100644 --- a/src/libostree/ostree-core.c +++ b/src/libostree/ostree-core.c @@ -714,11 +714,8 @@ ostree_content_file_parse (gboolean compressed, if (!file_input) goto out; - if (fstat (g_file_descriptor_based_get_fd ((GFileDescriptorBased*)file_input), &stbuf) < 0) - { - ot_util_set_error_from_errno (error, errno); - goto out; - } + if (!gs_stream_fstat ((GFileDescriptorBased*)file_input, &stbuf, cancellable, error)) + goto out; length = stbuf.st_size; } |