diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-10-01 22:41:18 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-10-01 22:41:18 +0000 |
commit | 5690e71d564db93a3cef3a329f302111e60277ca (patch) | |
tree | 1fa36875bce600881e28547c2aeb0a552bec06aa /net/ttt/files/patch-net_names.c | |
parent | Update to 1.3.1, which adds an additional "paper mode". (diff) |
- Unbreak
- Fix build with gcc 4.2
Notes
Notes:
svn path=/head/; revision=200564
Diffstat (limited to 'net/ttt/files/patch-net_names.c')
-rw-r--r-- | net/ttt/files/patch-net_names.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net/ttt/files/patch-net_names.c b/net/ttt/files/patch-net_names.c new file mode 100644 index 000000000000..3221c40ea399 --- /dev/null +++ b/net/ttt/files/patch-net_names.c @@ -0,0 +1,21 @@ +--- net_names.c.orig 2004-08-14 14:32:15.000000000 +0200 ++++ net_names.c 2007-10-02 00:07:03.000000000 +0200 +@@ -161,6 +161,9 @@ + return NULL; + } + ++static char *inet6_ntoa(uint32_t *addr); /* should be replaced by addr2ascii */ ++ ++ + char *net_getname(long type, long *id) + { + char *buf, *name; +@@ -261,8 +264,6 @@ + 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"); |