mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 16:43:11 +01:00
Nuke unused server_client_index function, pointed out by martynas@.
This commit is contained in:
parent
8a873b97a3
commit
8548624676
13
server.c
13
server.c
@ -116,19 +116,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)
|
||||
|
Loading…
Reference in New Issue
Block a user