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)
This commit is contained in:
Aaron Jones 2017-07-31 04:33:15 +00:00
parent 9c7e29bf66
commit e52356b21e
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012

View file

@ -1365,17 +1365,14 @@ rb_inet_ntop_sock(struct sockaddr *src, char *dst, unsigned int size)
{ {
case AF_INET: case AF_INET:
return (rb_inet_ntop(AF_INET, &((struct sockaddr_in *)src)->sin_addr, dst, size)); return (rb_inet_ntop(AF_INET, &((struct sockaddr_in *)src)->sin_addr, dst, size));
break;
#ifdef RB_IPV6 #ifdef RB_IPV6
case AF_INET6: case AF_INET6:
return (rb_inet_ntop return (rb_inet_ntop
(AF_INET6, &((struct sockaddr_in6 *)src)->sin6_addr, dst, size)); (AF_INET6, &((struct sockaddr_in6 *)src)->sin6_addr, dst, size));
break;
#endif #endif
default:
return NULL;
break;
} }
return NULL;
} }
/* char * /* char *