summaryrefslogtreecommitdiffstats
path: root/source/lib/util_sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/util_sock.c')
-rw-r--r--source/lib/util_sock.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c
index 0aa328c5d15..b0426e3809f 100644
--- a/source/lib/util_sock.c
+++ b/source/lib/util_sock.c
@@ -106,9 +106,9 @@ static void print_socket_options(int s)
for (; p->name != NULL; p++) {
if (getsockopt(s, p->level, p->option, (void *)&value, &vlen) == -1) {
- DEBUG(3,("Could not test socket option %s.\n", p->name));
+ DEBUG(5,("Could not test socket option %s.\n", p->name));
} else {
- DEBUG(3,("socket option %s = %d\n",p->name,value));
+ DEBUG(5,("socket option %s = %d\n",p->name,value));
}
}
}
@@ -791,9 +791,9 @@ int open_socket_in(int type, int port, int dlevel,uint32 socket_addr, BOOL rebin
{ DEBUG(0,("gethostname failed\n")); return -1; }
/* get host info */
- if ((hp = Get_Hostbyname(host_name)) == 0)
+ if ((hp = sys_gethostbyname(host_name)) == 0)
{
- DEBUG(0,( "Get_Hostbyname: Unknown host %s\n",host_name));
+ DEBUG(0,( "sys_gethostbyname: Unknown host %s\n",host_name));
return -1;
}
@@ -945,8 +945,8 @@ static BOOL matchname(char *remotehost,struct in_addr addr)
struct hostent *hp;
int i;
- if ((hp = Get_Hostbyname(remotehost)) == 0) {
- DEBUG(0,("Get_Hostbyname(%s): lookup failure.\n", remotehost));
+ if ((hp = sys_gethostbyname(remotehost)) == 0) {
+ DEBUG(0,("sys_gethostbyname(%s): lookup failure.\n", remotehost));
return False;
}