diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-08 17:06:39 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-08 17:06:39 -0700 |
| commit | ca9263880a8db50d302773b9ba8e2887a1ffeded (patch) | |
| tree | 3c8095fa7c5fd22fb807707c3960b27702d8e7fd /src/core | |
| parent | 3cedf14c3586b0770cb9ee62c75f922ab2006153 (diff) | |
| download | nng-ca9263880a8db50d302773b9ba8e2887a1ffeded.tar.gz nng-ca9263880a8db50d302773b9ba8e2887a1ffeded.tar.bz2 nng-ca9263880a8db50d302773b9ba8e2887a1ffeded.zip | |
Various cleanups of unused bits.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/options.c | 2 | ||||
| -rw-r--r-- | src/core/pipe.c | 1 | ||||
| -rw-r--r-- | src/core/timer.c | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/src/core/options.c b/src/core/options.c index 245172bf..d975c585 100644 --- a/src/core/options.c +++ b/src/core/options.c @@ -52,7 +52,7 @@ int nni_setopt_size(size_t *ptr, const void *val, size_t size, size_t minval, size_t maxval) { - int v; + size_t v; if (size != sizeof (v)) { return (NNG_EINVAL); diff --git a/src/core/pipe.c b/src/core/pipe.c index eaf4fa1c..9151ede0 100644 --- a/src/core/pipe.c +++ b/src/core/pipe.c @@ -199,7 +199,6 @@ nni_pipe_create(nni_pipe **pp, nni_ep *ep, nni_sock *sock, nni_tran *tran) nni_pipe *p; int rv; uint32_t id; - void *pdata; rv = nni_objhash_alloc(nni_pipes, &id, (void **) &p); if (rv != 0) { diff --git a/src/core/timer.c b/src/core/timer.c index 085a297a..b6be0b52 100644 --- a/src/core/timer.c +++ b/src/core/timer.c @@ -135,7 +135,6 @@ nni_timer_loop(void *arg) { nni_timer *timer = arg; nni_time now; - nni_time expire; nni_timer_node *node; for (;;) { |
