diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-22 12:41:44 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-22 12:41:44 -0800 |
| commit | 113e3606bd1a763850db1afee336bb0d5d434317 (patch) | |
| tree | 681bb2f8d71c399fbfe4502b8573ce9e3d9a8fe1 /src/supplemental/http/http_public.c | |
| parent | 8c14ed19b5c72f060f31767e5bc4106054e41192 (diff) | |
| download | nng-113e3606bd1a763850db1afee336bb0d5d434317.tar.gz nng-113e3606bd1a763850db1afee336bb0d5d434317.tar.bz2 nng-113e3606bd1a763850db1afee336bb0d5d434317.zip | |
http: nng_http_handler_set_data is now void return (API break)
Diffstat (limited to 'src/supplemental/http/http_public.c')
| -rw-r--r-- | src/supplemental/http/http_public.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/supplemental/http/http_public.c b/src/supplemental/http/http_public.c index 1dccbdf6..49638b66 100644 --- a/src/supplemental/http/http_public.c +++ b/src/supplemental/http/http_public.c @@ -637,16 +637,15 @@ nng_http_handler_set_tree_exclusive(nng_http_handler *h) #endif } -int +void nng_http_handler_set_data(nng_http_handler *h, void *dat, void (*dtor)(void *)) { #ifdef NNG_SUPP_HTTP - return (nni_http_handler_set_data(h, dat, dtor)); + nni_http_handler_set_data(h, dat, dtor); #else NNI_ARG_UNUSED(h); NNI_ARG_UNUSED(dat); NNI_ARG_UNUSED(dtor); - return (NNG_ENOTSUP); #endif } |
