mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-16 10:50:43 +03:00
core: Use gs_stream_fstat()
Just a cleanup.
This commit is contained in:
parent
6bb4ea46ab
commit
a04bda126c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user