| 242 | } |
| 243 | |
| 244 | static void |
| 245 | RuleDelete(struct proxy_entry *entry) |
| 246 | { |
| 247 | struct libalias *la; |
| 248 | |
| 249 | la = entry->la; |
| 250 | LIBALIAS_LOCK_ASSERT(la); |
| 251 | if (entry->last != NULL) |
| 252 | entry->last->next = entry->next; |
| 253 | else |
| 254 | la->proxyList = entry->next; |
| 255 | |
| 256 | if (entry->next != NULL) |
| 257 | entry->next->last = entry->last; |
| 258 | |
| 259 | free(entry); |
| 260 | } |
| 261 | |
| 262 | static int |
| 263 | RuleNumberDelete(struct libalias *la, int rule_index) |
no test coverage detected