]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
daemon-util: expose notify_remove_fd_warn()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 5 Apr 2025 13:41:28 +0000 (22:41 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 7 Oct 2025 09:48:58 +0000 (11:48 +0200)
(cherry picked from commit 8b078c5b86e13e9af88ead08ac1570cb4c61f7ef)

src/shared/daemon-util.c
src/shared/daemon-util.h

index d8aa259ee97199a883552bd2227741e4e1414edb..e83ca8f663782c26ee3714829386ad8bb48dca1a 100644 (file)
@@ -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);
index cbb175cbe13823b923b17eb092e11ccb047c0236..ff5e60e9be950cb3f5ddb40a0e25e523d6b2025a 100644 (file)
@@ -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);