mirror of
https://github.com/systemd/systemd
synced 2024-10-01 13:55:20 +00:00
selinux-util: make type of cleanup func void
Follow-up for 6623c64a02
Return values are pointless for _cleanup_ functions, and
this matches what we do in DEFINE_TRIVIAL_CLEANUP_FUNC().
This commit is contained in:
parent
c89d1e425a
commit
2128085d0c
|
@ -14,9 +14,8 @@
|
||||||
|
|
||||||
DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(char*, freecon, NULL);
|
DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(char*, freecon, NULL);
|
||||||
#else
|
#else
|
||||||
static inline char* freeconp(char **p) {
|
static inline void freeconp(char **p) {
|
||||||
assert(*p == NULL);
|
assert(*p == NULL);
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue