summaryrefslogtreecommitdiff
path: root/source4/nbt_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-17 11:50:52 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-19 07:05:54 +0100
commit2973af51110ebefda71b01a7292aa27cdf58aaf9 (patch)
treea4a4a055ae5ce4e9e3ddeb31dbd09736e2c5c1a1 /source4/nbt_server
parent2dcac3c5e6ab19d0d274c09eb47c4fddf82b7a2c (diff)
downloadsamba-2973af51110ebefda71b01a7292aa27cdf58aaf9.tar.gz
samba-2973af51110ebefda71b01a7292aa27cdf58aaf9.tar.bz2
samba-2973af51110ebefda71b01a7292aa27cdf58aaf9.zip
nbt_server/wins: add some const
metze (from samba4wins tree e54b2d3ddbf338fe5d9802724e76f320fd4423e5)
Diffstat (limited to 'source4/nbt_server')
-rw-r--r--source4/nbt_server/wins/winsdb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/nbt_server/wins/winsdb.c b/source4/nbt_server/wins/winsdb.c
index fe0382d22b..85265fb8a2 100644
--- a/source4/nbt_server/wins/winsdb.c
+++ b/source4/nbt_server/wins/winsdb.c
@@ -153,7 +153,8 @@ failed:
/*
return a DN for a nbt_name
*/
-static struct ldb_dn *winsdb_dn(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, struct nbt_name *name)
+static struct ldb_dn *winsdb_dn(TALLOC_CTX *mem_ctx, struct ldb_context *ldb,
+ const struct nbt_name *name)
{
struct ldb_dn *dn;
@@ -167,7 +168,7 @@ static struct ldb_dn *winsdb_dn(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, st
return dn;
}
-static NTSTATUS winsdb_nbt_name(TALLOC_CTX *mem_ctx, struct ldb_dn *dn, struct nbt_name **_name)
+static NTSTATUS winsdb_nbt_name(TALLOC_CTX *mem_ctx, const struct ldb_dn *dn, struct nbt_name **_name)
{
NTSTATUS status;
struct nbt_name *name;
@@ -568,7 +569,7 @@ const char **winsdb_addr_string_list(TALLOC_CTX *mem_ctx, struct winsdb_addr **a
load a WINS entry from the database
*/
NTSTATUS winsdb_lookup(struct winsdb_handle *h,
- struct nbt_name *name,
+ const struct nbt_name *name,
TALLOC_CTX *mem_ctx,
struct winsdb_record **_rec)
{