pkgsrc/net/ttt/patches/patch-ab
obache 05e68fc209 Update ttt to version 1.8.2.
This version contains build problem with gcc4 reported and patch provided
by Yakovetsky Vladimir in PR 36943.
2007-09-07 13:53:44 +00:00

23 lines
762 B
Text

$NetBSD: patch-ab,v 1.4 2007/09/07 13:53:44 obache Exp $
--- net_names.c.orig 2004-08-14 12:32:15.000000000 +0000
+++ net_names.c
@@ -126,6 +126,9 @@ static struct pname_tab eth_tab[] =
#define IPPROTO_OSPFIGP 89 /* OSPFIGP */
#endif
+static char *inet6_ntoa(u_int32_t *addr); /* should be replaced
+ by addr2ascii */
+
static struct pname_tab ip_tab[] =
{
{ "tcp", IPPROTO_TCP }, /* tcp */
@@ -261,8 +264,6 @@ char *net_getname(long type, long *id)
case TTTTYPE_IPV6HOST:
{
u_int32_t tmp[4];
- static char *inet6_ntoa(u_int32_t *addr); /* should be replaced
- by addr2ascii */
if ((buf = malloc(sizeof("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx")))
== NULL)
fatal_error("get_protoname: no memory\n");