diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2018-03-08 13:30:30 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2018-03-08 13:30:31 -0600 |
commit | 9d32958fd279eb4f7455b92a0c0658b23e8ef074 (patch) | |
tree | d3256a6b9fc31f2479162f90dfaef512ee96ad16 | |
parent | 3c64e7ebe6befd500239d1b5d8b7a877b715ef86 (diff) | |
parent | 58f44f225a07d140ef7e0def27496244e7a82d39 (diff) |
Merge "utils: In Solaris, avoid a warning about an unused variable."
-rw-r--r-- | main/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c index 7f74f40be..928b89bc5 100644 --- a/main/utils.c +++ b/main/utils.c @@ -189,7 +189,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; @@ -199,7 +201,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++; |