diff options
author | Colin Walters <walters@verbum.org> | 2017-10-11 09:41:31 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-10-11 19:26:10 +0000 |
commit | 1825f03fe77cdc028aa19c6b2f20086381fd2604 (patch) | |
tree | da0614f2690dd083e3c38ac049342219cdfd257a /src/libostree/ostree-bootloader-uboot.c | |
parent | 3e3d28632d9a3c9cd974531487bdc830c326b184 (diff) | |
download | ostree-1825f03fe77cdc028aa19c6b2f20086381fd2604.tar.gz |
tree-wide: Update to new libglnx fd APIs
This ends up a lot better IMO. This commit is *mostly* just
`s/glnx_close_fd/glnx_autofd`, but there's also a number of hunks like:
```
- if (self->sysroot_fd != -1)
- {
- (void) close (self->sysroot_fd);
- self->sysroot_fd = -1;
- }
+ glnx_close_fd (&self->sysroot_fd);
```
Update submodule: libglnx
Closes: #1259
Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-bootloader-uboot.c')
-rw-r--r-- | src/libostree/ostree-bootloader-uboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libostree/ostree-bootloader-uboot.c b/src/libostree/ostree-bootloader-uboot.c index 81791e1c..2dbaead8 100644 --- a/src/libostree/ostree-bootloader-uboot.c +++ b/src/libostree/ostree-bootloader-uboot.c @@ -73,7 +73,7 @@ append_system_uenv (OstreeBootloaderUboot *self, GCancellable *cancellable, GError **error) { - glnx_fd_close int uenv_fd = -1; + glnx_autofd int uenv_fd = -1; __attribute__((cleanup(_ostree_kernel_args_cleanup))) OstreeKernelArgs *kargs = NULL; const char *uenv_path = NULL; const char *ostree_arg = NULL; |