| 260 | } |
| 261 | |
| 262 | node_t * |
| 263 | pe_find_node_id(GListPtr nodes, const char *id) |
| 264 | { |
| 265 | GListPtr gIter = nodes; |
| 266 | |
| 267 | for (; gIter != NULL; gIter = gIter->next) { |
| 268 | node_t *node = (node_t *) gIter->data; |
| 269 | |
| 270 | if (node && safe_str_eq(node->details->id, id)) { |
| 271 | return node; |
| 272 | } |
| 273 | } |
| 274 | /* error */ |
| 275 | return NULL; |
| 276 | } |
| 277 | |
| 278 | node_t * |
| 279 | pe_find_node(GListPtr nodes, const char *uname) |
no outgoing calls
no test coverage detected