summaryrefslogtreecommitdiff
path: root/net/ttt/patches/patch-ab
blob: abe04ca5ebb029c20efe84bce9f232fc7e703e7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ab,v 1.3 2006/06/09 11:08:53 joerg Exp $

--- net_names.c.orig	2006-06-09 10:53:04.000000000 +0000
+++ net_names.c
@@ -125,6 +125,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 */
@@ -260,8 +263,6 @@ char *net_getname(long type, long *id)
     case TTTTYPE_IPV6HOST:
     {
 	u_long tmp[4];
-	static char *inet6_ntoa(u_long *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");