diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-27 09:29:36 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-11-25 07:25:45 +0100 |
commit | b3e33ea5bf262b325a35800ca846b939409024fa (patch) | |
tree | 1a209a744443fc6fad2811f014edd4fdf49b8635 /source4/nbt_server | |
parent | 4bb9aca9001747f6781c5a495d52f3dce62e47e2 (diff) | |
download | samba-b3e33ea5bf262b325a35800ca846b939409024fa.tar.gz |
s4:nbt_server: avoid str_list related const warning
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/nbt_server')
-rw-r--r-- | source4/nbt_server/wins/winsclient.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/nbt_server/wins/winsclient.c b/source4/nbt_server/wins/winsclient.c index b047b2b4118..0636594dddb 100644 --- a/source4/nbt_server/wins/winsclient.c +++ b/source4/nbt_server/wins/winsclient.c @@ -142,6 +142,7 @@ static void nbtd_wins_refresh(struct tevent_context *ev, struct tevent_timer *te struct nbt_name_socket *nbtsock = wins_socket(iface); struct tevent_req *subreq; struct nbtd_wins_refresh_state *state; + char **l; state = talloc_zero(iname, struct nbtd_wins_refresh_state); if (state == NULL) { @@ -152,7 +153,8 @@ static void nbtd_wins_refresh(struct tevent_context *ev, struct tevent_timer *te /* setup a wins name refresh request */ state->io.in.name = iname->name; - state->io.in.wins_servers = (const char **)str_list_make_single(state, iname->wins_server); + l = str_list_make_single(state, iname->wins_server); + state->io.in.wins_servers = discard_const_p(const char *, l); state->io.in.wins_port = lpcfg_nbt_port(iface->nbtsrv->task->lp_ctx); state->io.in.addresses = nbtd_address_list(iface, state); state->io.in.nb_flags = iname->nb_flags; |