diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-09-07 21:05:47 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-09-07 21:05:47 +0200 |
commit | 5e5c1a4d20f56824a2016c51d5f94817a0bfca77 (patch) | |
tree | 9d32fa6e1b25c0b631cd92df519ed66b0ecf8442 /nDPIsrvd.c | |
parent | ab374d193f2637489f7d1615d15057c97ec7f5e6 (diff) |
nDPIsrvd: Use of an anonymous enum for collector/distributor socket types fits best.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'nDPIsrvd.c')
-rw-r--r-- | nDPIsrvd.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/nDPIsrvd.c b/nDPIsrvd.c index 26543b7dd..7d5eb5062 100644 --- a/nDPIsrvd.c +++ b/nDPIsrvd.c @@ -17,12 +17,6 @@ #include "config.h" #include "utils.h" -enum ev_type -{ - JSON_SOCK, - SERV_SOCK -}; - struct io_buffer { uint8_t * ptr; @@ -32,7 +26,7 @@ struct io_buffer struct remote_desc { - enum ev_type type; + enum { JSON_SOCK, SERV_SOCK } type; int fd; struct io_buffer buf; union { |