| 54 | |
| 55 | |
| 56 | int oid_array_for_each(struct oid_array *array, |
| 57 | for_each_oid_fn fn, |
| 58 | void *data) |
| 59 | { |
| 60 | size_t i; |
| 61 | |
| 62 | /* No oid_array_sort() here! See oid-array.h */ |
| 63 | |
| 64 | for (i = 0; i < array->nr; i++) { |
| 65 | int ret = fn(array->oid + i, data); |
| 66 | if (ret) |
| 67 | return ret; |
| 68 | } |
| 69 | return 0; |
| 70 | } |
| 71 | |
| 72 | int oid_array_for_each_unique(struct oid_array *array, |
| 73 | for_each_oid_fn fn, |
no outgoing calls
no test coverage detected