summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-09-17 12:08:55 +0000
committerAndrew Tridgell <tridge@samba.org>2002-09-17 12:08:55 +0000
commit9faf941652119cd5f754d34bfc7d34967bfbf688 (patch)
treef3f7c63d65d6e4231ca957f9a7b495fbfb51d9fb /source3
parentfffd0eb1428d9505391f8a3d2410ca0389ba113e (diff)
downloadsamba-9faf941652119cd5f754d34bfc7d34967bfbf688.tar.gz
samba-9faf941652119cd5f754d34bfc7d34967bfbf688.tar.xz
samba-9faf941652119cd5f754d34bfc7d34967bfbf688.zip
more const cleanups
(This used to be commit dfa85f9c48aa3c8d93775df6b6ad2dec9a1692d7)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/secrets.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index ec67b74390..307dc132fc 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -68,7 +68,7 @@ void *secrets_fetch(const char *key, size_t *size)
/* store a secrets entry
*/
-BOOL secrets_store(const char *key, void *data, size_t size)
+BOOL secrets_store(const char *key, const void *data, size_t size)
{
TDB_DATA kbuf, dbuf;
secrets_init();
@@ -95,7 +95,7 @@ BOOL secrets_delete(const char *key)
return tdb_delete(tdb, kbuf) == 0;
}
-BOOL secrets_store_domain_sid(char *domain, DOM_SID *sid)
+BOOL secrets_store_domain_sid(char *domain, const DOM_SID *sid)
{
fstring key;
@@ -148,7 +148,7 @@ BOOL secrets_fetch_domain_guid(char *domain, GUID *guid)
strupper(key);
dyn_guid = (GUID *)secrets_fetch(key, &size);
- DEBUG(6,("key is %s, guid is at %x, size is %d\n", key, dyn_guid, size));
+ DEBUG(6,("key is %s, size is %d\n", key, (int)size));
if ((NULL == dyn_guid) && (ROLE_DOMAIN_PDC == lp_server_role())) {
uuid_generate_random(&new_guid);