core: Use gs_stream_fstat()

Just a cleanup.
This commit is contained in:
Colin Walters 2013-08-15 14:21:26 -04:00
parent 6bb4ea46ab
commit a04bda126c
1 changed files with 2 additions and 5 deletions

View File

@ -714,11 +714,8 @@ ostree_content_file_parse (gboolean compressed,
if (!file_input) if (!file_input)
goto out; goto out;
if (fstat (g_file_descriptor_based_get_fd ((GFileDescriptorBased*)file_input), &stbuf) < 0) if (!gs_stream_fstat ((GFileDescriptorBased*)file_input, &stbuf, cancellable, error))
{ goto out;
ot_util_set_error_from_errno (error, errno);
goto out;
}
length = stbuf.st_size; length = stbuf.st_size;
} }