Merge "utils: In Solaris, avoid a warning about an unused variable." into 13

This commit is contained in:
Jenkins2
2018-03-08 11:13:31 -06:00
committed by Gerrit Code Review

View File

@@ -196,7 +196,9 @@ static int gethostbyname_r (const char *name, struct hostent *ret, char *buf,
*/
struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp)
{
#ifndef HAVE_GETHOSTBYNAME_R_5
int res;
#endif
int herrno;
int dots = 0;
const char *s;
@@ -206,7 +208,6 @@ struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp)
integers, we break with tradition and refuse to look up a
pure integer */
s = host;
res = 0;
while (s && *s) {
if (*s == '.')
dots++;