mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
Merge "utils: In Solaris, avoid a warning about an unused variable."
This commit is contained in:
@@ -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)
|
struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp)
|
||||||
{
|
{
|
||||||
|
#ifndef HAVE_GETHOSTBYNAME_R_5
|
||||||
int res;
|
int res;
|
||||||
|
#endif
|
||||||
int herrno;
|
int herrno;
|
||||||
int dots = 0;
|
int dots = 0;
|
||||||
const char *s;
|
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
|
integers, we break with tradition and refuse to look up a
|
||||||
pure integer */
|
pure integer */
|
||||||
s = host;
|
s = host;
|
||||||
res = 0;
|
|
||||||
while (s && *s) {
|
while (s && *s) {
|
||||||
if (*s == '.')
|
if (*s == '.')
|
||||||
dots++;
|
dots++;
|
||||||
|
|||||||
Reference in New Issue
Block a user