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:
parent
e52356b21e
commit
eef58149c7
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue