From 751499b9584e777d3dfb6be0cc4b07e48eb70c6d Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 30 Nov 2015 22:38:16 +0000 Subject: Revert. Committer was explicitly asked to not commit that change as it is incompletely and incorrect. --- pkgtools/pbulk-base/Makefile | 4 ++-- pkgtools/pbulk/files/pbulk/lib/netaddr.c | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'pkgtools') diff --git a/pkgtools/pbulk-base/Makefile b/pkgtools/pbulk-base/Makefile index a521aa60ac7..8aadcd2a91e 100644 --- a/pkgtools/pbulk-base/Makefile +++ b/pkgtools/pbulk-base/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.18 2015/11/30 20:46:57 asau Exp $ +# $NetBSD: Makefile,v 1.19 2015/11/30 22:38:16 joerg Exp $ -DISTNAME= pbulk-base-0.51 +DISTNAME= pbulk-base-0.50 COMMENT= Core components of the modular bulk build framework .include "../../pkgtools/pbulk/Makefile.common" diff --git a/pkgtools/pbulk/files/pbulk/lib/netaddr.c b/pkgtools/pbulk/files/pbulk/lib/netaddr.c index 4d6fe29929a..c95385c6520 100644 --- a/pkgtools/pbulk/files/pbulk/lib/netaddr.c +++ b/pkgtools/pbulk/files/pbulk/lib/netaddr.c @@ -1,4 +1,4 @@ -/* $NetBSD: netaddr.c,v 1.9 2015/11/30 20:46:57 asau Exp $ */ +/* $NetBSD: netaddr.c,v 1.10 2015/11/30 22:38:16 joerg Exp $ */ /*- * Copyright (c) 2007 Joerg Sonnenberger . @@ -37,7 +37,6 @@ #include #include #include -#include #include #include @@ -53,12 +52,9 @@ parse_sockaddr_in(const char *str, struct sockaddr_in *addr) if ((port_sep = strrchr(str, ':')) != NULL) { char *addr_part = strdup(str); - struct hostent *he; addr_part[port_sep - str] = '\0'; - if ((he = gethostbyname(addr_part)) != NULL) { - memmove(&in, he->h_addr, sizeof(in)); - } else if (inet_aton(addr_part, &in) == 0) { + if (inet_aton(addr_part, &in) == 0) { free(addr_part); return -1; } -- cgit v1.2.3