char stat_ch;
char *str;
totem_transport_t transport_number = TOTEM_TRANSPORT_KNET;
+ int no_match = 1;
printf ("Printing link status.\n");
result = corosync_cfg_initialize (&handle, NULL);
}
if (show_current_iface) {
+ no_match = 0;
printf ("LINK ID %s\n", interface_names[i]);
printf ("\taddr\t= %s\n", cur_iface_name_space + 1);
/*
}
}
+ /* No match for value of -i option */
+ if (no_match) {
+ rc = EXIT_FAILURE;
+ fprintf(stderr, "Can't match any IP address or link id\n");
+ }
+
for (i = 0; i < interface_count; i++) {
free(interface_status[i]);
free(interface_names[i]);