From 9d93fa9b69dc61cc437273553c1fcf2fc3a86da8 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 18 Apr 2017 03:54:27 +0000 Subject: [PATCH] removed unused function; from Edgar Pettijohn --- usr.sbin/identd/identd.c | 16 +--------------- 1 file changed, 1 insertion(+), 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 @@ -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 { @@ -1151,19 +1150,6 @@ gethost(struct sockaddr_storage *ss) return (buf); } -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) { -- 2.20.1