From 3298ac1e93742e7a1ef5c4dc2e9b603dfa89d3cb Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 29 Dec 2023 17:43:50 -0800 Subject: fixes #1740 Public ID hash API This includes a manual page documenting the entire set of functions in one step. The hash is 64-bit based for now, to be maximally flexible. An internal 32-bit convenience for the common internal use is also provided (not public). The public API includes a test suite. --- src/core/dialer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/dialer.c') diff --git a/src/core/dialer.c b/src/core/dialer.c index 91d18dc8..b1ded52f 100644 --- a/src/core/dialer.c +++ b/src/core/dialer.c @@ -259,7 +259,7 @@ nni_dialer_create(nni_dialer **dp, nni_sock *s, const char *url_str) nni_aio_init(&d->d_tmo_aio, dialer_timer_cb, d); nni_mtx_lock(&dialers_lk); - rv = nni_id_alloc(&dialers, &d->d_id, d); + rv = nni_id_alloc32(&dialers, &d->d_id, d); nni_mtx_unlock(&dialers_lk); #ifdef NNG_ENABLE_STATS -- cgit v1.2.3-70-g09d2