mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 19:39:04 +00:00
Sync OpenBSD patchset 326:
Nuke unused server_client_index function, pointed out by martynas@.
This commit is contained in:
parent
82d6bab57c
commit
960cd3da69
15
server.c
15
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 <nicm@users.sourceforge.net>
|
||||
@ -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)
|
||||
|
3
tmux.h
3
tmux.h
@ -1,4 +1,4 @@
|
||||
/* $Id: tmux.h,v 1.441 2009-09-13 20:37:37 tcunha Exp $ */
|
||||
/* $Id: tmux.h,v 1.442 2009-09-15 23:50:32 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -1433,7 +1433,6 @@ const char *key_string_lookup_key(int);
|
||||
/* server.c */
|
||||
extern struct clients clients;
|
||||
extern struct clients dead_clients;
|
||||
int server_client_index(struct client *);
|
||||
int server_start(char *);
|
||||
|
||||
/* server-msg.c */
|
||||
|
Loading…
Reference in New Issue
Block a user