]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared: add a single definition of libmount cleanup functions
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Apr 2019 10:54:19 +0000 (12:54 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 5 Apr 2019 08:18:21 +0000 (10:18 +0200)
commitfb36b1339be0211d5d4cd6d035df704bdd589597
tree07dcf695d2ff9e420e7b5a89784e18573082f2b6
parent949082ac214409365c01781fbf18ba08593918ff
shared: add a single definition of libmount cleanup functions

Use a trivial header file to share mnt_free_tablep and mnt_free_iterp.
It would be nicer put this in mount-util.h, but libmount.h is not in the
default include path, and the build system would have to be adjusted to pass
pkg-config include path in various places, and it's just not worth the trouble.
A separate header file works nicely.
src/core/mount.c
src/shared/libmount-util.h [new file with mode: 0644]
src/shared/meson.build
src/shutdown/umount.c