summaryrefslogtreecommitdiffstats
path: root/src/timesync/timesyncd-manager.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-16 13:48:04 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-16 17:15:10 +0100
commit75db809ae583ef7287e39738195c0825c3070843 (patch)
tree9793b944d340516003c0fc10ccb9322a4e126721 /src/timesync/timesyncd-manager.h
parentnetworkd: make network_config_section_free() inline (diff)
downloadsystemd-75db809ae583ef7287e39738195c0825c3070843.tar.xz
systemd-75db809ae583ef7287e39738195c0825c3070843.zip
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.
Diffstat (limited to 'src/timesync/timesyncd-manager.h')
-rw-r--r--src/timesync/timesyncd-manager.h2
1 files changed, 1 insertions, 1 deletions
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);