]> xenbits.xensource.com Git - libvirt.git/commit
maint: cleanup detection of const'ness of selinux ctx
authorJim Fehlig <jfehlig@suse.com>
Wed, 28 May 2014 19:48:21 +0000 (13:48 -0600)
committerJim Fehlig <jfehlig@suse.com>
Wed, 28 May 2014 22:52:48 +0000 (16:52 -0600)
commitb109c097654c4fe003e8535481191f37a35d5d7b
tree9d96adb1114fb4ba21c17d1c2614e12d997de4da
parent292d3f2d38e8faca075ababcb652f2e090b745b2
maint: cleanup detection of const'ness of selinux ctx

Commit 292d3f2d fixed the build with libselinux 2.3, but missed
some suggestions by eblake

https://www.redhat.com/archives/libvir-list/2014-May/msg00977.html

This patch changes the macro introduced in 292d3f2d to either be
empty in the case of newer libselinux, or contain 'const' in the
case of older libselinux.  The macro is then used directly in
tests/securityselinuxhelper.c.
m4/virt-selinux.m4
tests/securityselinuxhelper.c