Fix build when HAVE_LIBCAPNG is not defined.
authorRussell Bryant <rbryant@redhat.com>
Thu, 1 Oct 2015 15:29:16 +0000 (11:29 -0400)
committerBen Pfaff <blp@nicira.com>
Thu, 1 Oct 2015 15:48:50 +0000 (08:48 -0700)
commit6e6271d2f56f3940cc06930054bba86a47859bcc
tree1fc804e092f7b7db25c5ac643734e9aab2a72222
parentbf66c06797b0b03ec72582472d55d72e854eb435
Fix build when HAVE_LIBCAPNG is not defined.

The function daemon_become_new_user_linux was conditionally defined but
then used in code unconditionally.  If HAVE_LIBCAPNG is not defined, the
function would never be called, but it still must exist.

Adjust the #if guard around the function to be around the body of the
function instead of outside of its definition to ensure the function is
always defined, even if empty.

This issue was introduced in e91b927d8966bfcb9768225392324dde4fd7d7f6.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/daemon-unix.c