summaryrefslogtreecommitdiffstats
path: root/source/lib/util_sid.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-06-14 02:58:03 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-06-14 02:58:03 +0000
commitc264bf2ec93037d2a9927c00295fa60c88b7219d (patch)
tree562de9e4fb76dbf11ac5252f13574e0a716830a3 /source/lib/util_sid.c
parentec4f1e9e2f6c162a475b424d63b9802387ad905e (diff)
downloadsamba-c264bf2ec93037d2a9927c00295fa60c88b7219d.tar.gz
samba-c264bf2ec93037d2a9927c00295fa60c88b7219d.tar.xz
samba-c264bf2ec93037d2a9927c00295fa60c88b7219d.zip
Patch from ctrlsoft to make the pluggable passdb subsystem use an lp_list
rather than a string when configuring mulitple backends. Also adjust some of the users of get_global_sam_sid() to cope with the fact that it just might not exist (uninitialised, can't access secrets.tdb). More places need conversion. Add some const and remove silly casts. Andrew Bartlett
Diffstat (limited to 'source/lib/util_sid.c')
-rw-r--r--source/lib/util_sid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/util_sid.c b/source/lib/util_sid.c
index ca9ebb14d28..b27040b6584 100644
--- a/source/lib/util_sid.c
+++ b/source/lib/util_sid.c
@@ -119,7 +119,7 @@ void split_domain_name(const char *fullname, char *domain, char *name)
Convert a SID to an ascii string.
*****************************************************************/
-char *sid_to_string(fstring sidstr_out, DOM_SID *sid)
+char *sid_to_string(fstring sidstr_out, const DOM_SID *sid)
{
char subauth[16];
int i;
@@ -149,7 +149,7 @@ char *sid_to_string(fstring sidstr_out, DOM_SID *sid)
/*
useful function for debug lines
*/
-const char *sid_string_static(DOM_SID *sid)
+const char *sid_string_static(const DOM_SID *sid)
{
static fstring sid_str;
sid_to_string(sid_str, sid);