MINOR: server: create new function cli_find_server() to find a server
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Nov 2016 16:15:08 +0000 (17:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Nov 2016 15:59:27 +0000 (16:59 +0100)
commit21b069dca83e2bc29d720e74f22848d8c24aa48d
tree320eae67e8f62319abe26e57734f94c33fd0b510
parentde57a578ba79f37092025ccf571e388a23ce679c
MINOR: server: create new function cli_find_server() to find a server

Several CLI commands require a server, so let's have a function to
look this one up and prepare the appropriate error message and the
appctx's state in case of failure.
include/proto/server.h
src/server.c