From 9b4d9e71a63cafcee0edee734847bba28d9fea35 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 12 Aug 2017 10:16:54 -0700 Subject: Convenience option accesor functions. This adds functions that know about option sizes and make them easier to use. While here I added some validation of those, and cleaned up a few tests slightly. Note that we do not need to use the nng_impl.h for most tests. More of them need to be cleaned up. --- tests/device.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/device.c') diff --git a/tests/device.c b/tests/device.c index e5239f25..ba0ebeca 100644 --- a/tests/device.c +++ b/tests/device.c @@ -9,7 +9,6 @@ // #include "convey.h" -#include "core/nng_impl.h" #include "nng.h" #include @@ -33,7 +32,6 @@ dodev(void *arg) } Main({ - nni_init(); Test("PAIRv1 device", { const char *addr1 = "inproc://dev1"; @@ -64,7 +62,6 @@ Main({ So(nng_thread_create(&thr, dodev, &ddata) == 0); Reset({ - printf("RESETING1\n"); nng_close(dev1); nng_close(dev2); nng_thread_destroy(thr); @@ -108,5 +105,5 @@ Main({ }); }); - nni_fini(); + nng_fini(); }) -- cgit v1.2.3-70-g09d2