summaryrefslogtreecommitdiffstats
path: root/source4/libcli/nbt/nbtname.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-12 11:33:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:45 -0500
commite199f4cef2bac3b244d08d445421975313229283 (patch)
treeacc368908e18aef24c8093cf7a28044e61754ee3 /source4/libcli/nbt/nbtname.c
parentff4797a9e4b01fe8cc9421e911371677433d070c (diff)
downloadsamba-e199f4cef2bac3b244d08d445421975313229283.tar.gz
samba-e199f4cef2bac3b244d08d445421975313229283.tar.xz
samba-e199f4cef2bac3b244d08d445421975313229283.zip
r5358: - added initial WINS server code. It passes most of the NBT-WINS test, but doesn't yet
do secure server WACK responses - added a ldap_string_to_time() function, for converting a LDAP formatted time to a time_t (This used to be commit 9aa3313b3f93e47e3f93028e072f6a23b3c22385)
Diffstat (limited to 'source4/libcli/nbt/nbtname.c')
-rw-r--r--source4/libcli/nbt/nbtname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/nbt/nbtname.c b/source4/libcli/nbt/nbtname.c
index adc66980c4f..b937d0aa26d 100644
--- a/source4/libcli/nbt/nbtname.c
+++ b/source4/libcli/nbt/nbtname.c
@@ -359,10 +359,10 @@ static const char *nbt_hex_encode(TALLOC_CTX *mem_ctx, const char *s)
/*
form a string for a NBT name
*/
-const char *nbt_name_string(TALLOC_CTX *mem_ctx, const struct nbt_name *name)
+char *nbt_name_string(TALLOC_CTX *mem_ctx, const struct nbt_name *name)
{
TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
- const char *ret;
+ char *ret;
if (name->scope) {
ret = talloc_asprintf(mem_ctx, "%s<%02x>-%s",
nbt_hex_encode(tmp_ctx, name->name),