diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-10 15:29:03 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-10 15:29:03 -0700 |
| commit | 910564d2f67eb81a07c0c6b2af0fc0878137308b (patch) | |
| tree | 020040727ae28de3d15d74d1db20556832afedfa /src/core | |
| parent | 795aebbee77bb74d8792df96dfe1aa79ec9548fc (diff) | |
| download | nng-910564d2f67eb81a07c0c6b2af0fc0878137308b.tar.gz nng-910564d2f67eb81a07c0c6b2af0fc0878137308b.tar.bz2 nng-910564d2f67eb81a07c0c6b2af0fc0878137308b.zip | |
Make better use of enums (makes clang-format happier.)
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/endpt.h | 6 |
1 files changed, 4 insertions, 2 deletions
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); |
