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

View File

@ -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;
}