| 181 | } |
| 182 | |
| 183 | char * |
| 184 | score2char(int score) |
| 185 | { |
| 186 | if (score >= node_score_infinity) { |
| 187 | return strdup(INFINITY_S); |
| 188 | |
| 189 | } else if (score <= -node_score_infinity) { |
| 190 | return strdup("-" INFINITY_S); |
| 191 | } |
| 192 | return crm_itoa(score); |
| 193 | } |
| 194 | |
| 195 | const char * |
| 196 | cluster_option(GHashTable * options, gboolean(*validate) (const char *), |
no test coverage detected