diff options
Diffstat (limited to 'ctrl/libhicnctrl/src/commands')
-rw-r--r-- | ctrl/libhicnctrl/src/commands/command_listener.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ctrl/libhicnctrl/src/commands/command_listener.c b/ctrl/libhicnctrl/src/commands/command_listener.c index bba4f4541..c11742bba 100644 --- a/ctrl/libhicnctrl/src/commands/command_listener.c +++ b/ctrl/libhicnctrl/src/commands/command_listener.c @@ -68,8 +68,13 @@ int on_listener_create(hc_listener_t* listener) { case FACE_TYPE_HICN: listener->type = FACE_TYPE_HICN_LISTENER; break; - default: + case FACE_TYPE_UDP_LISTENER: + case FACE_TYPE_TCP_LISTENER: + case FACE_TYPE_HICN_LISTENER: break; + case FACE_TYPE_UNDEFINED: + case FACE_TYPE_N: + return -1; } return 0; } |