diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-24 13:12:56 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-24 13:12:56 -0800 |
| commit | 2afc725ff5a41fbc7445f3681e83cf579f13b578 (patch) | |
| tree | aafc445c2857c83edaae6378094ec5f217a9cbad /src/core | |
| parent | 5ab47e210de76d29cffbc9ea47800775a3627210 (diff) | |
| download | nng-2afc725ff5a41fbc7445f3681e83cf579f13b578.tar.gz nng-2afc725ff5a41fbc7445f3681e83cf579f13b578.tar.bz2 nng-2afc725ff5a41fbc7445f3681e83cf579f13b578.zip | |
Remove all the set_ptr option functions.
This hopefully ensures that we have good typed functions instead
of just passing around pointers blithely.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/stream.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/core/stream.c b/src/core/stream.c index e46eb59a..cc7ac496 100644 --- a/src/core/stream.c +++ b/src/core/stream.c @@ -507,12 +507,6 @@ nng_stream_dialer_set_ms(nng_stream_dialer *d, const char *n, nng_duration v) } int -nng_stream_dialer_set_ptr(nng_stream_dialer *d, const char *n, void *v) -{ - return (nni_stream_dialer_set(d, n, &v, sizeof(v), NNI_TYPE_POINTER)); -} - -int nng_stream_dialer_set_string( nng_stream_dialer *d, const char *n, const char *v) { @@ -567,13 +561,6 @@ nng_stream_listener_set_ms( } int -nng_stream_listener_set_ptr(nng_stream_listener *l, const char *n, void *v) -{ - return ( - nni_stream_listener_set(l, n, &v, sizeof(v), NNI_TYPE_POINTER)); -} - -int nng_stream_listener_set_string( nng_stream_listener *l, const char *n, const char *v) { |
