diff options
Diffstat (limited to 'lib/src/face.c')
-rw-r--r-- | lib/src/face.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/src/face.c b/lib/src/face.c index 832cd0936..81395c4b1 100644 --- a/lib/src/face.c +++ b/lib/src/face.c @@ -447,7 +447,9 @@ get_protocol (face_type_t face_type) case FACE_TYPE_UDP_LISTENER: return FACE_PROTOCOL_UDP; - default: - return FACE_PROTOCOL_UNKNOWN; + case FACE_TYPE_UNDEFINED: + case FACE_TYPE_N: + break; } + return FACE_PROTOCOL_UNKNOWN; } |