libcli/nbt: s/refresh_wins_state/nbt_name_refresh_wins_state
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Oct 2010 06:18:16 +0000 (08:18 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Oct 2010 15:36:15 +0000 (15:36 +0000)
metze

libcli/nbt/namerefresh.c

index 7748add2dfabf91e5cdb34b971bc98de2b0558e3..f6221dd6029505705fd06941d2c9dd7a0f5e9750 100644 (file)
@@ -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;
        }