This commit was generated by cvs2svn to compensate for changes in r138451,

which included commits to RCS files with non-trunk default branches.
This commit is contained in:
Ollivier Robert 2004-12-06 14:33:29 +00:00
commit 0003d12e46
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138452

View File

@ -1339,7 +1339,10 @@ addserver(
hints.ai_family = ai_fam_templ;
hints.ai_socktype = SOCK_DGRAM;
printf("Looking for host %s and service %s\n", serv, service);
#ifdef DEBUG
if (debug)
printf("Looking for host %s and service %s\n", serv, service);
#endif
error = getaddrinfo(serv, service, &hints, &addrResult);
if (error != 0) {
@ -1347,9 +1350,11 @@ addserver(
msyslog(LOG_ERR, "can't find host %s\n", serv);
return;
}
else {
#ifdef DEBUG
else if (debug) {
fprintf(stderr, "host found : %s\n", stohost((struct sockaddr_storage*)addrResult->ai_addr));
}
#endif
server = (struct server *)emalloc(sizeof(struct server));
memset((char *)server, 0, sizeof(struct server));