From 910564d2f67eb81a07c0c6b2af0fc0878137308b Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 10 Jul 2017 15:29:03 -0700 Subject: Make better use of enums (makes clang-format happier.) --- src/core/endpt.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/endpt.h b/src/core/endpt.h index 6ad2172b..65eb5d57 100644 --- a/src/core/endpt.h +++ b/src/core/endpt.h @@ -37,8 +37,10 @@ struct nni_ep { nni_list ep_pipes; }; -#define NNI_EP_MODE_DIAL 1 -#define NNI_EP_MODE_LISTEN 2 +enum nni_ep_mode { + NNI_EP_MODE_DIAL = 1, + NNI_EP_MODE_LISTEN = 2, +}; extern int nni_ep_sys_init(void); extern void nni_ep_sys_fini(void); -- cgit v1.2.3-70-g09d2