diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-11-09 13:55:44 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-09 13:55:44 +0300 |
| commit | b6380d60c78639941192c2194269fc1c21b6db81 (patch) | |
| tree | c92de61d32a44754e02d9495c265aada09c0986b /lib/vector.c | |
| parent | d630e21a0bde7fcaf0a7621fbe6c2ab0492c9a7f (diff) | |
| parent | 14ae4f17a8b9162645eb120dd5e64532527a32ee (diff) | |
Merge pull request #9996 from opensourcerouting/resolver-fix-threads
lib: fix `struct thread **` misuse in c-ares resolver bindings
Diffstat (limited to 'lib/vector.c')
| -rw-r--r-- | lib/vector.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/vector.c b/lib/vector.c index 38f9b1b85f..5497c24280 100644 --- a/lib/vector.c +++ b/lib/vector.c @@ -136,17 +136,6 @@ int vector_set_index(vector v, unsigned int i, void *val) return i; } -/* Make a specified index slot active and return its address. */ -void **vector_get_index(vector v, unsigned int i) -{ - vector_ensure(v, i); - - if (v->active <= i) - v->active = i + 1; - - return &v->index[i]; -} - /* Look up vector. */ void *vector_lookup(vector v, unsigned int i) { |
