Skip to content

Commit 37ff190

Browse files
committed
Refactor: libcib: Clean up includes in cib_remote.c
1 parent 0574bc5 commit 37ff190

1 file changed

Lines changed: 22 additions & 19 deletions

File tree

lib/cib/cib_remote.c

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,28 @@
99

1010
#include <crm_internal.h>
1111

12-
#include <unistd.h>
13-
#include <stdbool.h>
14-
#include <stdlib.h>
15-
#include <stdio.h>
16-
#include <stdarg.h>
17-
#include <string.h>
18-
#include <netdb.h>
19-
#include <termios.h>
20-
#include <sys/socket.h>
21-
22-
#include <glib.h>
23-
#include <gnutls/gnutls.h>
24-
25-
#include <crm/crm.h>
26-
#include <crm/cib/internal.h>
27-
#include <crm/common/mainloop.h>
28-
#include <crm/common/xml.h>
29-
30-
#include <gnutls/gnutls.h>
12+
#include <errno.h> // ENOTCONN, EPROTO, EAGAIN
13+
#include <stdbool.h> // false, bool, true
14+
#include <stdlib.h> // NULL, free, calloc
15+
#include <string.h> // strdup
16+
#include <sys/socket.h> // shutdown, SHUT_RDWR
17+
#include <time.h> // time, time_t
18+
#include <unistd.h> // close
19+
20+
#include <glib.h> // gpointer, gboolean, g_list_foreach
21+
#include <gnutls/gnutls.h> // gnutls_deinit, gnutls_bye
22+
#include <libxml/tree.h> // xmlNode
23+
#include <qb/qblog.h> // QB_XS
24+
25+
#include <crm/cib/internal.h> // cib__create_op, cib__extend_transaction
26+
#include <crm/common/internal.h>
27+
#include <crm/common/mainloop.h> // mainloop_fd_callbacks
28+
#include <crm/crm.h> // CRM_OP_REGISTER, crm_system_name
29+
#include <crm/cib.h> // cib_remote_new
30+
#include <crm/cib/cib_types.h> // cib_s, cib_t
31+
#include <crm/common/results.h> // pcmk_rc_str, pcmk_rc_*
32+
#include <crm/common/xml_names.h> // PCMK_XA_OP, PCMK_XA_REMOTE_TLS_PORT
33+
#include <crm_config.h> // PACEMAKER_CONFIG_DIR
3134

3235
// GnuTLS handshake timeout in seconds
3336
#define TLS_HANDSHAKE_TIMEOUT 5

0 commit comments

Comments
 (0)