diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-10-19 15:16:25 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-10-19 17:56:49 -0700 |
| commit | 4e668fdd5b5da0d46f97d835249dbe5f0ea319a7 (patch) | |
| tree | 0aaad8a672024b3a510763150b167320be6f1f5b /src/core/options.c | |
| parent | d7e39a2423212a31c5ef62dcb0b7a5b4bf9f34df (diff) | |
| download | nng-4e668fdd5b5da0d46f97d835249dbe5f0ea319a7.tar.gz nng-4e668fdd5b5da0d46f97d835249dbe5f0ea319a7.tar.bz2 nng-4e668fdd5b5da0d46f97d835249dbe5f0ea319a7.zip | |
fixes #84 Consider using msec for durations
There is now a public nng_duration type. We have also updated the
zerotier work to work with the signed int64_t's that the latst ZeroTier
dev branch is using.
Diffstat (limited to 'src/core/options.c')
| -rw-r--r-- | src/core/options.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/options.c b/src/core/options.c index aa744642..3b787b82 100644 --- a/src/core/options.c +++ b/src/core/options.c @@ -14,7 +14,7 @@ #include <string.h> int -nni_chkopt_usec(const void *v, size_t sz) +nni_chkopt_ms(const void *v, size_t sz) { nni_duration val; if (sz != sizeof(val)) { @@ -56,7 +56,7 @@ nni_chkopt_size(const void *v, size_t sz, size_t minv, size_t maxv) } int -nni_setopt_usec(nni_duration *dp, const void *v, size_t sz) +nni_setopt_ms(nni_duration *dp, const void *v, size_t sz) { nni_duration dur; @@ -110,7 +110,7 @@ nni_setopt_size(size_t *sp, const void *v, size_t sz, size_t minv, size_t maxv) } int -nni_getopt_usec(nni_duration u, void *val, size_t *sizep) +nni_getopt_ms(nni_duration u, void *val, size_t *sizep) { size_t sz = sizeof(u); |
