From: Yu Watanabe Date: Sat, 5 Apr 2025 13:41:28 +0000 (+0900) Subject: daemon-util: expose notify_remove_fd_warn() X-Git-Tag: v258-rc1~842^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b078c5b86e13e9af88ead08ac1570cb4c61f7ef;p=thirdparty%2Fsystemd.git daemon-util: expose notify_remove_fd_warn() --- diff --git a/src/shared/daemon-util.c b/src/shared/daemon-util.c index d8aa259ee97..e83ca8f6637 100644 --- a/src/shared/daemon-util.c +++ b/src/shared/daemon-util.c @@ -6,7 +6,7 @@ #include "string-util.h" #include "time-util.h" -static int notify_remove_fd_warn(const char *name) { +int notify_remove_fd_warn(const char *name) { int r; assert(name); diff --git a/src/shared/daemon-util.h b/src/shared/daemon-util.h index cbb175cbe13..ff5e60e9be9 100644 --- a/src/shared/daemon-util.h +++ b/src/shared/daemon-util.h @@ -23,6 +23,7 @@ static inline void notify_on_cleanup(const char **p) { (void) sd_notify(false, *p); } +int notify_remove_fd_warn(const char *name); int notify_remove_fd_warnf(const char *format, ...) _printf_(1, 2); int close_and_notify_warn(int fd, const char *name); int notify_push_fd(int fd, const char *name);