summaryrefslogtreecommitdiffstats
path: root/libcli
diff options
context:
space:
mode:
Diffstat (limited to 'libcli')
-rw-r--r--libcli/nbt/namerefresh.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libcli/nbt/namerefresh.c b/libcli/nbt/namerefresh.c
index 7748add2dfa..f6221dd6029 100644
--- a/libcli/nbt/namerefresh.c
+++ b/libcli/nbt/namerefresh.c
@@ -142,7 +142,7 @@ _PUBLIC_ NTSTATUS nbt_name_refresh(struct nbt_name_socket *nbtsock,
addresses to refresh. Try each WINS server in turn, until we get a
reply for each address
*/
-struct refresh_wins_state {
+struct nbt_name_refresh_wins_state {
struct nbt_name_socket *nbtsock;
struct nbt_name_refresh *io;
const char **wins_servers;
@@ -161,12 +161,12 @@ _PUBLIC_ struct composite_context *nbt_name_refresh_wins_send(struct nbt_name_so
struct nbt_name_refresh_wins *io)
{
struct composite_context *c;
- struct refresh_wins_state *state;
+ struct nbt_name_refresh_wins_state *state;
c = talloc_zero(nbtsock, struct composite_context);
if (c == NULL) goto failed;
- state = talloc(c, struct refresh_wins_state);
+ state = talloc(c, struct nbt_name_refresh_wins_state);
if (state == NULL) goto failed;
state->io = talloc(state, struct nbt_name_refresh);
@@ -219,8 +219,8 @@ static void name_refresh_wins_handler(struct nbt_name_request *req)
{
struct composite_context *c = talloc_get_type(req->async.private_data,
struct composite_context);
- struct refresh_wins_state *state = talloc_get_type(c->private_data,
- struct refresh_wins_state);
+ struct nbt_name_refresh_wins_state *state = talloc_get_type(c->private_data,
+ struct nbt_name_refresh_wins_state);
NTSTATUS status;
status = nbt_name_refresh_recv(state->req, state, state->io);
@@ -282,8 +282,8 @@ _PUBLIC_ NTSTATUS nbt_name_refresh_wins_recv(struct composite_context *c, TALLOC
NTSTATUS status;
status = composite_wait(c);
if (NT_STATUS_IS_OK(status)) {
- struct refresh_wins_state *state =
- talloc_get_type(c->private_data, struct refresh_wins_state);
+ struct nbt_name_refresh_wins_state *state =
+ talloc_get_type(c->private_data, struct nbt_name_refresh_wins_state);
io->out.wins_server = talloc_steal(mem_ctx, state->wins_servers[0]);
io->out.rcode = state->io->out.rcode;
}