Commit 5340b8de authored by Havoc Pennington's avatar Havoc Pennington

audit_init() was not declared in header, causing warnings; fix this and namespace it

2007-10-23  Havoc Pennington  <hp@redhat.com>

	* bus/bus.c (bus_context_new): use the new name here

	* bus/selinux.c (bus_selinux_audit_init): rename from audit_init()
	to avoid possible libc conflict, and declare it in .h file to
	avoid a warning
parent a8e32b68
2007-10-23 Havoc Pennington <hp@redhat.com>
* bus/bus.c (bus_context_new): use the new name here
* bus/selinux.c (bus_selinux_audit_init): rename from audit_init()
to avoid possible libc conflict, and declare it in .h file to
avoid a warning
2007-10-19 Havoc Pennington <hp@redhat.com>
* bus/bus.c (bus_context_new): put audit_init() in HAVE_SELINUX
......
......@@ -761,7 +761,8 @@ bus_context_new (const DBusString *config_file,
}
#ifdef HAVE_SELINUX
audit_init ();
/* FIXME - why not just put this in full_init() below? */
bus_selinux_audit_init ();
#endif
}
......
......@@ -114,7 +114,7 @@ static int audit_fd = -1;
#endif
void
audit_init(void)
bus_selinux_audit_init(void)
{
#ifdef HAVE_LIBAUDIT
audit_fd = audit_open ();
......
......@@ -67,5 +67,6 @@ BusSELinuxID* bus_selinux_init_connection_id (DBusConnection *connection,
DBusError *error);
void bus_selinux_audit_init(void);
#endif /* BUS_SELINUX_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment