From 75db809ae583ef7287e39738195c0825c3070843 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Tue, 16 Feb 2021 13:48:04 +0100 Subject: tree-wide: return NULL from freeing functions I started working on this because I wanted to change how DEFINE_TRIVIAL_CLEANUP_FUNC is defined. Even independently of that change, it's nice to make make things more consistent and predictable. --- src/timesync/timesyncd-manager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/timesync/timesyncd-manager.h') diff --git a/src/timesync/timesyncd-manager.h b/src/timesync/timesyncd-manager.h index 37cf406190..af218a5f63 100644 --- a/src/timesync/timesyncd-manager.h +++ b/src/timesync/timesyncd-manager.h @@ -103,7 +103,7 @@ struct Manager { }; int manager_new(Manager **ret); -void manager_free(Manager *m); +Manager* manager_free(Manager *m); DEFINE_TRIVIAL_CLEANUP_FUNC(Manager*, manager_free); -- cgit v1.2.3