-
-static struct pa_mainloop *mainloop;
-
-static void drop_root(void) {
- if (getuid() != 0 && geteuid() == 0) {
- pa_log(__FILE__": Started SUID root, dropping root rights.\n");
- setuid(getuid());
- seteuid(getuid());
- }
-}
-
-static const char* signal_name(int s) {
- switch(s) {
- case SIGINT: return "SIGINT";
- case SIGTERM: return "SIGTERM";
- case SIGUSR1: return "SIGUSR1";
- case SIGUSR2: return "SIGUSR2";
- case SIGXCPU: return "SIGXCPU";
- case SIGPIPE: return "SIGPIPE";
- default: return "UNKNOWN SIGNAL";
- }
-}
+#include "daemon-conf.h"
+#include "dumpmodules.h"
+#include "caps.h"
+#include "cli-text.h"
+
+#ifdef HAVE_LIBWRAP
+/* Only one instance of these variables */
+int allow_severity = LOG_INFO;
+int deny_severity = LOG_WARNING;
+#endif