diff options
author | Simon McVittie <smcv@collabora.com> | 2023-03-17 13:32:26 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2023-03-17 13:32:26 +0000 |
commit | 7b02fdfdf8617fea6f0b6d90ee608ee8c88a2fa6 (patch) | |
tree | bf422a1360cddfc46118f9df54c4abbf318e828b /src/libostree/ostree-core.c | |
parent | aecdf62828c8b1ad45ea0a2b1f7359ea2a1498da (diff) | |
download | ostree-7b02fdfdf8617fea6f0b6d90ee608ee8c88a2fa6.tar.gz |
Use g_steal_fd() in preference to glnx_steal_fd()
g_steal_fd() exists in GLib since 2.70, and libglnx has a backport for
older GLib versions, equivalent to the libglnx-specific glnx_steal_fd().
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'src/libostree/ostree-core.c')
-rw-r--r-- | src/libostree/ostree-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libostree/ostree-core.c b/src/libostree/ostree-core.c index 56b381d9..b7124df4 100644 --- a/src/libostree/ostree-core.c +++ b/src/libostree/ostree-core.c @@ -687,7 +687,7 @@ ostree_content_file_parse_at (gboolean compressed, if (!glnx_fstat (fd, &stbuf, error)) return FALSE; - g_autoptr(GInputStream) file_input = g_unix_input_stream_new (glnx_steal_fd (&fd), TRUE); + g_autoptr(GInputStream) file_input = g_unix_input_stream_new (g_steal_fd (&fd), TRUE); g_autoptr(GFileInfo) ret_file_info = NULL; g_autoptr(GVariant) ret_xattrs = NULL; @@ -1038,7 +1038,7 @@ ostree_checksum_file_at (int dfd, glnx_autofd int fd = -1; if (!glnx_openat_rdonly (dfd, path, FALSE, &fd, error)) return FALSE; - in = g_unix_input_stream_new (glnx_steal_fd (&fd), TRUE); + in = g_unix_input_stream_new (g_steal_fd (&fd), TRUE); if (canonicalize_perms) { g_file_info_set_attribute_uint32 (file_info, "unix::uid", 0); |