summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-11-25 19:27:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:09 -0500
commitc199c2af1fa686962bb313222a0a0a29625ec450 (patch)
tree7125f1b1f088fa27f02b78eb374e659b50288c42
parent089f3843c5eadc792f9f8399bf3df45601621b2c (diff)
downloadsamba-c199c2af1fa686962bb313222a0a0a29625ec450.tar.gz
samba-c199c2af1fa686962bb313222a0a0a29625ec450.tar.bz2
samba-c199c2af1fa686962bb313222a0a0a29625ec450.zip
r3968: fix compiler warnings
metze (This used to be commit 6440476f7f2fd5776ec4a21240e7482603000d19)
-rw-r--r--source4/lib/tdb/tools/tdbdump.c2
-rw-r--r--source4/rpc_server/dcerpc_server.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/tdb/tools/tdbdump.c b/source4/lib/tdb/tools/tdbdump.c
index 822f65e594..dbb647cbbf 100644
--- a/source4/lib/tdb/tools/tdbdump.c
+++ b/source4/lib/tdb/tools/tdbdump.c
@@ -43,7 +43,7 @@
static void print_data(TDB_DATA d)
{
- unsigned char *p = d.dptr;
+ unsigned char *p = (unsigned char *)d.dptr;
int len = d.dsize;
while (len--) {
if (isprint(*p) && !strchr("\"\\", *p)) {
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c
index de8ac73304..4a9465b9eb 100644
--- a/source4/rpc_server/dcerpc_server.c
+++ b/source4/rpc_server/dcerpc_server.c
@@ -243,7 +243,7 @@ NTSTATUS dcesrv_generic_session_key(struct dcesrv_connection *p,
DATA_BLOB *session_key)
{
/* this took quite a few CPU cycles to find ... */
- session_key->data = discard_const_p(char, "SystemLibraryDTC");
+ session_key->data = discard_const_p(void, "SystemLibraryDTC");
session_key->length = 16;
return NT_STATUS_OK;
}