1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-24 21:49:29 +03:00

winbindd: Remove the "old" non-bool dispatch table

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Volker Lendecke
2018-05-02 21:20:58 +02:00
parent 4051b70450
commit 0e4e2a0883

View File

@ -521,22 +521,6 @@ static void winbind_msg_validate_cache(struct messaging_context *msg_ctx,
_exit(0);
}
static struct winbindd_dispatch_table {
enum winbindd_cmd cmd;
void (*fn)(struct winbindd_cli_state *state);
const char *winbindd_cmd_name;
} dispatch_table[] = {
/* Enumeration functions */
/* Miscellaneous */
/* End of list */
{ WINBINDD_NUM_CMDS, NULL, "NONE" }
};
static struct winbindd_bool_dispatch_table {
enum winbindd_cmd cmd;
bool (*fn)(struct winbindd_cli_state *state);
@ -678,7 +662,6 @@ static void wb_request_done(struct tevent_req *req);
static void process_request(struct winbindd_cli_state *state)
{
struct winbindd_dispatch_table *table = dispatch_table;
struct winbindd_async_dispatch_table *atable;
size_t i;
bool ok;
@ -743,16 +726,6 @@ static void process_request(struct winbindd_cli_state *state)
state->response->result = WINBINDD_PENDING;
state->response->length = sizeof(struct winbindd_response);
for (table = dispatch_table; table->fn; table++) {
if (state->request->cmd == table->cmd) {
DEBUG(10,("process_request: request fn %s\n",
table->winbindd_cmd_name ));
state->cmd_name = table->winbindd_cmd_name;
table->fn(state);
return;
}
}
for (i=0; i<ARRAY_SIZE(bool_dispatch_table); i++) {
if (bool_dispatch_table[i].cmd == state->request->cmd) {
break;