actually get the host's name for the code that needs it (bug #4569)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming 2005-06-24 02:56:15 +00:00
parent d8cea2c8d4
commit 19c1ac82a4
1 changed files with 1 additions and 4 deletions

View File

@ -3113,13 +3113,10 @@ static int reload_config(void)
struct skinny_device *d;
int oldport = ntohs(bindaddr.sin_port);
#if 0
hp = ast_gethostbyname(ourhost, &ahp);
if (!hp) {
if (gethostname(ourhost, sizeof(ourhost))) {
ast_log(LOG_WARNING, "Unable to get hostname, Skinny disabled\n");
return 0;
}
#endif
cfg = ast_config_load(config);
/* We *must* have a config file otherwise stop immediately */