From e52356b21e7751884185977e5d559686575be56d Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Mon, 31 Jul 2017 04:33:15 +0000 Subject: [PATCH] libratbox/src/commio.c: misc cleanup for compiler warnings commio.c:1368:3: warning: 'break' will never be executed [-Wunreachable-code-break] (... and 2 more of the same) --- libratbox/src/commio.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libratbox/src/commio.c b/libratbox/src/commio.c index 4c40aab0..ba0e0f1d 100644 --- a/libratbox/src/commio.c +++ b/libratbox/src/commio.c @@ -1365,17 +1365,14 @@ rb_inet_ntop_sock(struct sockaddr *src, char *dst, unsigned int size) { case AF_INET: return (rb_inet_ntop(AF_INET, &((struct sockaddr_in *)src)->sin_addr, dst, size)); - break; #ifdef RB_IPV6 case AF_INET6: return (rb_inet_ntop (AF_INET6, &((struct sockaddr_in6 *)src)->sin6_addr, dst, size)); - break; #endif - default: - return NULL; - break; } + + return NULL; } /* char *