| 562 | } |
| 563 | |
| 564 | int |
| 565 | do_init(void) |
| 566 | { |
| 567 | int rc = pcmk_ok; |
| 568 | |
| 569 | the_cib = cib_new(); |
| 570 | rc = the_cib->cmds->signon(the_cib, crm_system_name, cib_command); |
| 571 | if (rc != pcmk_ok) { |
| 572 | crm_err("Signon to CIB failed: %s", pcmk_strerror(rc)); |
| 573 | fprintf(stderr, "Signon to CIB failed: %s\n", pcmk_strerror(rc)); |
| 574 | } |
| 575 | |
| 576 | return rc; |
| 577 | } |
| 578 | |
| 579 | void |
| 580 | cib_connection_destroy(gpointer user_data) |
no test coverage detected