summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-04-18 03:54:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-04-18 03:54:28 +0000
commitd4fc71ea14c0e8d840181a39f27c5551d2926950 (patch)
treed0b00ff583184fe7dc2faaa7220b6bcd6d152748
parenta9bf96150dc83c4e3f9e93dfc53c098384296e33 (diff)
removed unused function; from Edgar Pettijohn
-rw-r--r--usr.sbin/identd/identd.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/usr.sbin/identd/identd.c b/usr.sbin/identd/identd.c
index aba8ddc2697..f995f6a56a0 100644
--- a/usr.sbin/identd/identd.c
+++ b/usr.sbin/identd/identd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: identd.c,v 1.34 2016/09/04 14:39:32 florian Exp $ */
+/* $OpenBSD: identd.c,v 1.35 2017/04/18 03:54:27 deraadt Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
@@ -128,7 +128,6 @@ void identd_response(int, short, void *);
int fetchuid(struct ident_client *);
const char *gethost(struct sockaddr_storage *);
-const char *getport(struct sockaddr_storage *);
const char *gentoken(void);
struct loggers {
@@ -1152,19 +1151,6 @@ gethost(struct sockaddr_storage *ss)
}
const char *
-getport(struct sockaddr_storage *ss)
-{
- struct sockaddr *sa = (struct sockaddr *)ss;
- static char buf[NI_MAXSERV];
-
- if (getnameinfo(sa, sa->sa_len, NULL, 0, buf, sizeof(buf),
- NI_NUMERICSERV) != 0)
- return ("(unknown)");
-
- return (buf);
-}
-
-const char *
gentoken(void)
{
static char buf[21];