Finds index of request whose id matches the given id */
| 77 | |
| 78 | /* Finds index of request whose id matches the given id */ |
| 79 | static int RequestList_Find(struct RequestList* list, int id) { |
| 80 | int i; |
| 81 | for (i = 0; i < list->count; i++) { |
| 82 | if (id != list->entries[i].id) continue; |
| 83 | return i; |
| 84 | } |
| 85 | return -1; |
| 86 | } |
| 87 | |
| 88 | /* Tries to remove and free given request */ |
| 89 | static void RequestList_TryFree(struct RequestList* list, int id) { |
no outgoing calls
no test coverage detected