iAdding *BSD compatibility. - geomyidae - A small C-based gopherd. Err bitreich.org 70 hgit clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ URL:git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ bitreich.org 70 1Log /scm/geomyidae/log.gph bitreich.org 70 1Files /scm/geomyidae/files.gph bitreich.org 70 1Refs /scm/geomyidae/refs.gph bitreich.org 70 1Tags /scm/geomyidae/tag bitreich.org 70 1README /scm/geomyidae/file/README.gph bitreich.org 70 1LICENSE /scm/geomyidae/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit afc242d83cb480ecd0ec09f0dd43f3389df73f89 /scm/geomyidae/commit/afc242d83cb480ecd0ec09f0dd43f3389df73f89.gph bitreich.org 70 1parent cd5884a78c51da927a0cbf302989b21a055b770a /scm/geomyidae/commit/cd5884a78c51da927a0cbf302989b21a055b770a.gph bitreich.org 70 hAuthor: Christoph Lohmann <20h@r-36.net> URL:mailto:20h@r-36.net bitreich.org 70 iDate: Wed, 2 Mar 2011 15:43:25 +0100 Err bitreich.org 70 i Err bitreich.org 70 iAdding *BSD compatibility. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M ind.c | 4 +++- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 3 insertions(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/ind.c b/ind.c /scm/geomyidae/file/ind.c.gph bitreich.org 70 i@@ -12,6 +12,7 @@ Err bitreich.org 70 i #include Err bitreich.org 70 i #include Err bitreich.org 70 i #include Err bitreich.org 70 i+#include Err bitreich.org 70 i #include Err bitreich.org 70 i Err bitreich.org 70 i #include "ind.h" Err bitreich.org 70 i@@ -299,7 +300,8 @@ reverselookup(char *host) Err bitreich.org 70 i rethost = NULL; Err bitreich.org 70 i Err bitreich.org 70 i if(inet_pton(AF_INET, host, &hoststr)) { Err bitreich.org 70 i- client = gethostbyaddr(&hoststr, sizeof(hoststr), AF_INET); Err bitreich.org 70 i+ client = gethostbyaddr((const void *)&hoststr, Err bitreich.org 70 i+ sizeof(hoststr), AF_INET); Err bitreich.org 70 i if(client != NULL) Err bitreich.org 70 i rethost = strdup(client->h_name); Err bitreich.org 70 i } Err bitreich.org 70 .