src/res.c: misc cleanup for compiler warnings

res.c:704:6: 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:34:49 +00:00
parent e52356b21e
commit eef58149c7
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012

View file

@ -701,7 +701,6 @@ static int proc_answer(struct reslist *request, HEADER * header, char *buf, char
v4->sin_family = AF_INET;
memcpy(&v4->sin_addr, current, sizeof(struct in_addr));
return (1);
break;
#ifdef RB_IPV6
case T_AAAA:
if (request->type != T_AAAA)
@ -713,7 +712,6 @@ static int proc_answer(struct reslist *request, HEADER * header, char *buf, char
v6->sin6_family = AF_INET6;
memcpy(&v6->sin6_addr, current, sizeof(struct in6_addr));
return (1);
break;
#endif
case T_PTR:
if (request->type != T_PTR)
@ -728,7 +726,6 @@ static int proc_answer(struct reslist *request, HEADER * header, char *buf, char
rb_strlcpy(request->name, hostbuf, IRCD_RES_HOSTLEN + 1);
return (1);
break;
case T_CNAME:
/* real answer will follow */
current += rd_length;