diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-05-30 17:04:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:08:44 -0500 |
commit | 9796f755688d1196d362f528ab71d668901585b6 (patch) | |
tree | 3c34199aca7527c511c55667a123369473bf5ac3 /source4/nbt_server | |
parent | 8d0d05ddfdb227969777cc7ca6446c13c856fac5 (diff) | |
download | samba-9796f755688d1196d362f528ab71d668901585b6.tar.gz samba-9796f755688d1196d362f528ab71d668901585b6.tar.bz2 samba-9796f755688d1196d362f528ab71d668901585b6.zip |
r15956: fix warnings
metze
(This used to be commit e874a099667c7213cc8dda0a94bf749d7706fbb5)
Diffstat (limited to 'source4/nbt_server')
-rw-r--r-- | source4/nbt_server/wins/winsdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/nbt_server/wins/winsdb.c b/source4/nbt_server/wins/winsdb.c index a0b65bec25..53fe71c985 100644 --- a/source4/nbt_server/wins/winsdb.c +++ b/source4/nbt_server/wins/winsdb.c @@ -192,14 +192,14 @@ static NTSTATUS winsdb_nbt_name(TALLOC_CTX *mem_ctx, struct ldb_dn *dn, struct n } if (dn->comp_num > cur && strcasecmp("scope", dn->components[cur].name) == 0) { - name->scope = talloc_steal(name, dn->components[cur].value.data); + name->scope = (const char *)talloc_steal(name, dn->components[cur].value.data); cur++; } else { name->scope = NULL; } if (dn->comp_num > cur && strcasecmp("name", dn->components[cur].name) == 0) { - name->name = talloc_steal(name, dn->components[cur].value.data); + name->name = (const char *)talloc_steal(name, dn->components[cur].value.data); cur++; } else { name->name = talloc_strdup(name, ""); @@ -251,7 +251,7 @@ static NTSTATUS winsdb_addr_decode(struct winsdb_handle *h, struct winsdb_record p = strchr(address, ';'); if (!p) { /* support old entries, with only the address */ - addr->address = talloc_steal(addr, val->data); + addr->address = (const char *)talloc_steal(addr, val->data); addr->wins_owner = talloc_reference(addr, rec->wins_owner); if (!addr->wins_owner) { status = NT_STATUS_NO_MEMORY; |