Skip to content

Commit

Permalink
winbindd: winbindd_netbios_name() -> bool_dispatch_table
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Lendecke <[email protected]>
Reviewed-by: Stefan Metzmacher <[email protected]>
  • Loading branch information
vlendec committed May 17, 2018
1 parent 05105ea commit 762d8ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion source3/winbindd/winbindd.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,6 @@ static struct winbindd_dispatch_table {

{ WINBINDD_DOMAIN_INFO, winbindd_domain_info, "DOMAIN_INFO" },
{ WINBINDD_DC_INFO, winbindd_dc_info, "DC_INFO" },
{ WINBINDD_NETBIOS_NAME, winbindd_netbios_name, "NETBIOS_NAME" },
{ WINBINDD_PRIV_PIPE_DIR, winbindd_priv_pipe_dir,
"WINBINDD_PRIV_PIPE_DIR" },

Expand Down Expand Up @@ -566,6 +565,9 @@ static struct winbindd_bool_dispatch_table {
{ WINBINDD_DOMAIN_NAME,
winbindd_domain_name,
"DOMAIN_NAME" },
{ WINBINDD_NETBIOS_NAME,
winbindd_netbios_name,
"NETBIOS_NAME" },
};

struct winbindd_async_dispatch_table {
Expand Down
4 changes: 2 additions & 2 deletions source3/winbindd/winbindd_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,13 +543,13 @@ bool winbindd_domain_name(struct winbindd_cli_state *state)

/* What's my name again? */

void winbindd_netbios_name(struct winbindd_cli_state *state)
bool winbindd_netbios_name(struct winbindd_cli_state *state)
{
DEBUG(3, ("[%5lu]: request netbios name\n",
(unsigned long)state->pid));

fstrcpy(state->response->data.netbios_name, lp_netbios_name());
request_ok(state);
return true;
}

/* Where can I find the privileged pipe? */
Expand Down
2 changes: 1 addition & 1 deletion source3/winbindd/winbindd_proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ bool winbindd_ping(struct winbindd_cli_state *state);
bool winbindd_info(struct winbindd_cli_state *state);
bool winbindd_interface_version(struct winbindd_cli_state *state);
bool winbindd_domain_name(struct winbindd_cli_state *state);
void winbindd_netbios_name(struct winbindd_cli_state *state);
bool winbindd_netbios_name(struct winbindd_cli_state *state);
void winbindd_priv_pipe_dir(struct winbindd_cli_state *state);

/* The following definitions come from winbindd/winbindd_ndr.c */
Expand Down

0 comments on commit 762d8ab

Please sign in to comment.