diff options
| author | Marco Casaroli <marco.casaroli@gmail.com> | 2023-10-22 09:39:21 +0200 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2023-11-25 16:23:30 -0800 |
| commit | a228f85ccc38bcbf93cc16924cea67d771f26baf (patch) | |
| tree | df1e14ca76bd30bdcbc00d69c2ab21f051bb3ce5 /src/core/dialer.c | |
| parent | d6fd9b2a737373f5087b6ccf882f926570e1ab60 (diff) | |
| download | nng-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/dialer.c')
| -rw-r--r-- | src/core/dialer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dialer.c b/src/core/dialer.c index 7dd018f6..55a46efb 100644 --- a/src/core/dialer.c +++ b/src/core/dialer.c @@ -46,7 +46,7 @@ nni_dialer_destroy(nni_dialer *d) NNI_FREE_STRUCT(d); } -#if NNG_ENABLE_STATS +#ifdef NNG_ENABLE_STATS static void dialer_stat_init(nni_dialer *d, nni_stat_item *item, const nni_stat_info *info) { |
