|
9 | 9 |
|
10 | 10 | #include <crm_internal.h> |
11 | 11 |
|
| 12 | +#include <errno.h> // errno |
| 13 | +#include <grp.h> // initgroups |
| 14 | +#include <signal.h> // SIGTERM |
12 | 15 | #include <stdbool.h> |
13 | | -#include <stdio.h> |
14 | | -#include <stdlib.h> |
15 | | -#include <pwd.h> |
16 | | -#include <grp.h> |
17 | | -#include <bzlib.h> |
18 | | -#include <sys/types.h> |
19 | | - |
20 | | -#include <glib.h> |
21 | | -#include <libxml/tree.h> |
22 | | - |
23 | | -#include <crm/crm.h> |
24 | | -#include <crm/cib/internal.h> |
25 | | -#include <crm/cluster/internal.h> |
26 | | -#include <crm/common/mainloop.h> |
27 | | -#include <crm/common/xml.h> |
28 | | - |
29 | | -#include <pacemaker-based.h> |
| 16 | +#include <stddef.h> // NULL, size_t |
| 17 | +#include <stdlib.h> // free |
| 18 | +#include <syslog.h> // LOG_INFO |
| 19 | +#include <sys/types.h> // gid_t, uid_t |
| 20 | +#include <unistd.h> // setgid, setuid |
| 21 | + |
| 22 | +#include <corosync/cpg.h> // cpg_* |
| 23 | +#include <glib.h> // g_*, G_*, etc. |
| 24 | +#include <libxml/tree.h> // xmlNode |
| 25 | + |
| 26 | +#include <crm_config.h> // CRM_CONFIG_DIR, CRM_DAEMON_USER |
| 27 | +#include <crm/cib/internal.h> // cib_read_config |
| 28 | +#include <crm/cluster.h> // pcmk_cluster_* |
| 29 | +#include <crm/cluster/internal.h> // pcmk__node_update, etc. |
| 30 | +#include <crm/common/ipc.h> // crm_ipc_* |
| 31 | +#include <crm/common/logging.h> // crm_log_* |
| 32 | +#include <crm/common/mainloop.h> // mainloop_add_signal |
| 33 | +#include <crm/common/results.h> // CRM_EX_*, pcmk_rc_* |
| 34 | +#include <crm/common/xml.h> // PCMK_XA_REMOTE_*_PORT |
| 35 | + |
| 36 | +#include "pacemaker-based.h" |
30 | 37 |
|
31 | 38 | #define SUMMARY "daemon for managing the configuration of a Pacemaker cluster" |
32 | 39 |
|
|
0 commit comments