From 960cd3da69952e30535209e3bc486bba6e2c9af0 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Tue, 15 Sep 2009 23:50:32 +0000 Subject: Sync OpenBSD patchset 326: Nuke unused server_client_index function, pointed out by martynas@. --- server.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'server.c') diff --git a/server.c b/server.c index f8bdbaa8..a8ae6226 100644 --- a/server.c +++ b/server.c @@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.186 2009-09-13 20:43:21 tcunha Exp $ */ +/* $Id: server.c,v 1.187 2009-09-15 23:50:32 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -115,19 +115,6 @@ server_create_client(int fd) log_debug("new client %d", fd); } -/* Find client index. */ -int -server_client_index(struct client *c) -{ - u_int i; - - for (i = 0; i < ARRAY_LENGTH(&clients); i++) { - if (c == ARRAY_ITEM(&clients, i)) - return (i); - } - return (-1); -} - /* Fork new server. */ int server_start(char *path) -- cgit