diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-13 03:44:14 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-13 03:44:14 +0100 |
commit | cf6a8911738fe2635a5210769d5348b05b166691 (patch) | |
tree | 70bc1a013682c2a27187043de405bbdb977bb8f5 /src/libsystemd/sd-rtnl/rtnl-util.h | |
parent | aa28aefe61c5406c5cb631f3e82457b6d1bcc967 (diff) |
rtnl: drop "sd_" prefix from cleanup macros
The "sd_" prefix is supposed to be used on exported symbols only, and
not in the middle of names. Let's drop it from the cleanup macros hence,
to make things simpler.
The bus cleanup macros don't carry the "sd_" either, so this brings the
APIs a bit nearer.
Diffstat (limited to 'src/libsystemd/sd-rtnl/rtnl-util.h')
-rw-r--r-- | src/libsystemd/sd-rtnl/rtnl-util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/sd-rtnl/rtnl-util.h b/src/libsystemd/sd-rtnl/rtnl-util.h index d590ca74d6..33746afe2b 100644 --- a/src/libsystemd/sd-rtnl/rtnl-util.h +++ b/src/libsystemd/sd-rtnl/rtnl-util.h @@ -42,5 +42,5 @@ int rtnl_message_link_get_ifname(sd_rtnl_message *m, const char **ret); DEFINE_TRIVIAL_CLEANUP_FUNC(sd_rtnl*, sd_rtnl_unref); DEFINE_TRIVIAL_CLEANUP_FUNC(sd_rtnl_message*, sd_rtnl_message_unref); -#define _cleanup_sd_rtnl_unref_ _cleanup_(sd_rtnl_unrefp) -#define _cleanup_sd_rtnl_message_unref_ _cleanup_(sd_rtnl_message_unrefp) +#define _cleanup_rtnl_unref_ _cleanup_(sd_rtnl_unrefp) +#define _cleanup_rtnl_message_unref_ _cleanup_(sd_rtnl_message_unrefp) |