From 1c67672746ad129b94a734e9c98965c8c8ae1999 Mon Sep 17 00:00:00 2001 From: horseluke Date: Thu, 13 Jun 2019 15:43:24 +0800 Subject: [PATCH 1/2] Fix: MSVC error C2065: "uint": Undeclared identifier. --- sn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sn.c b/sn.c index 345e5ea..765830b 100644 --- a/sn.c +++ b/sn.c @@ -330,7 +330,7 @@ static int process_mgmt(n2n_sn_t * sss, { char resbuf[N2N_SN_PKTBUF_SIZE]; size_t ressize=0; - uint num_edges=0; + uint32_t num_edges=0; ssize_t r; struct sn_community *community, *tmp; From 66471945375e6d63f5c4b85c1db3ad5fe133fb7b Mon Sep 17 00:00:00 2001 From: horseluke Date: Thu, 13 Jun 2019 16:22:21 +0800 Subject: [PATCH 2/2] Fix: function setOption pass wrong argument to load_allowed_sn_community See issue #135 --- sn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sn.c b/sn.c index 765830b..0aa7451 100644 --- a/sn.c +++ b/sn.c @@ -777,7 +777,7 @@ static int setOption(int optkey, char *_optarg, n2n_sn_t *sss) { break; case 'c': /* community file */ - load_allowed_sn_community(sss, optarg); + load_allowed_sn_community(sss, _optarg); break; case 'f': /* foreground */