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-sysroot-deploy.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-sysroot-deploy.c')
-rw-r--r-- | src/libostree/ostree-sysroot-deploy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c index 9c70bcd5..b7903ab4 100644 --- a/src/libostree/ostree-sysroot-deploy.c +++ b/src/libostree/ostree-sysroot-deploy.c @@ -273,7 +273,7 @@ checksum_dir_recurse (int dfd, return FALSE; if (fd != -1) { - g_autoptr(GInputStream) in = g_unix_input_stream_new (glnx_steal_fd (&fd), TRUE); + g_autoptr(GInputStream) in = g_unix_input_stream_new (g_steal_fd (&fd), TRUE); if (!ot_gio_splice_update_checksum (NULL, in, checksum, cancellable, error)) return FALSE; } @@ -403,7 +403,7 @@ ensure_directory_from_template (int orig_etc_fd, return FALSE; if (out_dfd) - *out_dfd = glnx_steal_fd (&target_dfd); + *out_dfd = g_steal_fd (&target_dfd); return TRUE; } |