From 355cd727055959337fcdbe0617aae66f5d7ef433 Mon Sep 17 00:00:00 2001 From: Eric Curtin Date: Mon, 17 Jul 2023 13:23:27 +0100 Subject: [PATCH] Remove steal_pointer and steal_pointer_impl as we link in glib now These were necessary to keep initramfs small, but now we link in glib anyway so these functions are now redundant. --- src/switchroot/ostree-mount-util.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/switchroot/ostree-mount-util.h b/src/switchroot/ostree-mount-util.h index 4404c232..85f3443e 100644 --- a/src/switchroot/ostree-mount-util.h +++ b/src/switchroot/ostree-mount-util.h @@ -41,7 +41,6 @@ #define _OSTREE_COMPOSEFS_ROOT_STAMP "/run/ostree-composefs-root.stamp" #define autofree __attribute__ ((cleanup (cleanup_free))) -#define steal_pointer(pp) steal_pointer_impl ((void **)pp) static inline int path_is_on_readonly_fs (const char *path) @@ -89,15 +88,6 @@ cleanup_free (void *p) free (*pp); } -static inline void * -steal_pointer_impl (void **to_steal) -{ - void *ret = *to_steal; - *to_steal = NULL; - - return ret; -} - static inline char * read_proc_cmdline_key (const char *key) { -- 2.30.2