summaryrefslogtreecommitdiff
path: root/src/core/pipe.c
diff options
context:
space:
mode:
authorMarco Casaroli <marco.casaroli@gmail.com>2023-10-22 09:39:21 +0200
committerGarrett D'Amore <garrett@damore.org>2023-11-25 16:23:30 -0800
commita228f85ccc38bcbf93cc16924cea67d771f26baf (patch)
treedf1e14ca76bd30bdcbc00d69c2ab21f051bb3ce5 /src/core/pipe.c
parentd6fd9b2a737373f5087b6ccf882f926570e1ab60 (diff)
downloadnng-a228f85ccc38bcbf93cc16924cea67d771f26baf.tar.gz
nng-a228f85ccc38bcbf93cc16924cea67d771f26baf.tar.bz2
nng-a228f85ccc38bcbf93cc16924cea67d771f26baf.zip
fix: use ifdef for NNG_ENABLE_STATS
In some places, we use ifdef, and others if. This normalizes for always using ifdef, so we can compile when this macro is not defined.
Diffstat (limited to 'src/core/pipe.c')
-rw-r--r--src/core/pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/pipe.c b/src/core/pipe.c
index 06a57bf5..58267d69 100644
--- a/src/core/pipe.c
+++ b/src/core/pipe.c
@@ -312,7 +312,7 @@ nni_pipe_create_listener(nni_pipe **pp, nni_listener *l, void *tran_data)
return (rv);
}
p->p_listener = l;
-#if NNG_ENABLE_STATS
+#ifdef NNG_ENABLE_STATS
static const nni_stat_info listener_info = {
.si_name = "listener",
.si_desc = "listener for pipe",