From: deraadt Date: Tue, 18 Apr 2017 03:54:27 +0000 (+0000) Subject: removed unused function; from Edgar Pettijohn X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9d93fa9b69dc61cc437273553c1fcf2fc3a86da8;p=openbsd removed unused function; from Edgar Pettijohn --- 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) {