| 2565 | } |
| 2566 | |
| 2567 | static void clusterManagerRemoveNodeFromList(list *nodelist, |
| 2568 | clusterManagerNode *node) { |
| 2569 | listIter li; |
| 2570 | listNode *ln; |
| 2571 | listRewind(nodelist, &li); |
| 2572 | while ((ln = listNext(&li)) != NULL) { |
| 2573 | if (node == ln->value) { |
| 2574 | listDelNode(nodelist, ln); |
| 2575 | break; |
| 2576 | } |
| 2577 | } |
| 2578 | } |
| 2579 | |
| 2580 | /* Return the node with the specified name (ID) or NULL. */ |
| 2581 | static clusterManagerNode *clusterManagerNodeByName(const char *name) { |
no test coverage detected