summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-10-11 08:18:16 +0200
committerStefan Metzmacher <metze@samba.org>2010-10-18 15:36:15 +0000
commit3ded1da8e99a628530d0a45256e012b7553c094c (patch)
tree65986e67d47f39ac71042e6d817259a1bc93b500 /libcli
parente36e7295da42743519470f5b5c06e65071707db5 (diff)
downloadsamba-3ded1da8e99a628530d0a45256e012b7553c094c.tar.gz
samba-3ded1da8e99a628530d0a45256e012b7553c094c.tar.bz2
samba-3ded1da8e99a628530d0a45256e012b7553c094c.zip
libcli/nbt: s/refresh_wins_state/nbt_name_refresh_wins_state
metze
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 7748add2df..f6221dd602 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;
}