From 8b979454d891b84da727a329906c4293fadc5f3c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 18 Mar 2018 12:46:31 -0700 Subject: fixes #295 boolean options should use C99 bool type fixes #275 nng_pipe_getopt_ptr() missing? fixes #285 nng_setopt_ptr MIS fixes #297 nng_listener/dialer_close does not validate mode This change adds some missing APIs, and changes others. In particular, certain options are now of type bool, with size of just one. This is a *breaking* change for code that uses those options -- NNG_OPT_RAW, NNG_OPT_PAIR1_POLY, NNG_OPT_TLS_VERIFIED. --- tests/pubsub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/pubsub.c') diff --git a/tests/pubsub.c b/tests/pubsub.c index 3fd95b42..bd0d7f56 100644 --- a/tests/pubsub.c +++ b/tests/pubsub.c @@ -151,7 +151,7 @@ TestMain("PUB/SUB pattern", { nng_msg *msg; So(nng_setopt_ms(sub, NNG_OPT_RECVTIMEO, 90) == 0); - So(nng_setopt_int(sub, NNG_OPT_RAW, 1) == 0); + So(nng_setopt_bool(sub, NNG_OPT_RAW, true) == 0); So(nng_msg_alloc(&msg, 0) == 0); APPENDSTR(msg, "/some/like/it/raw"); -- cgit v1.2.3-70-g09d2