summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-09-28 00:12:49 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-09-28 00:12:49 +0000
commit3cfd42e83b5f0ad41fd6a5f80b0264b545bb56bf (patch)
tree5a3e8bbfb1e5f4d0a622265cb3109f877bd08c4e /source3/lib
parent465d93b1c6dbd8547091a7dc4b114f48d4a79d40 (diff)
downloadsamba-3cfd42e83b5f0ad41fd6a5f80b0264b545bb56bf.tar.gz
samba-3cfd42e83b5f0ad41fd6a5f80b0264b545bb56bf.tar.bz2
samba-3cfd42e83b5f0ad41fd6a5f80b0264b545bb56bf.zip
Add const.
(This used to be commit 0f5d18626bebaa0621ee703ea2cc8bf47e14ea3e)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sid.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index e9635fc7f8..18260be870 100644
--- a/source3/lib/util_sid.c
+++ b/source3/lib/util_sid.c
@@ -347,7 +347,7 @@ void sid_copy(DOM_SID *dst, const DOM_SID *src)
/*****************************************************************
Write a sid out into on-the-wire format.
*****************************************************************/
-BOOL sid_linearize(char *outbuf, size_t len, DOM_SID *sid)
+BOOL sid_linearize(char *outbuf, size_t len, const DOM_SID *sid)
{
size_t i;
@@ -366,7 +366,7 @@ BOOL sid_linearize(char *outbuf, size_t len, DOM_SID *sid)
/*****************************************************************
parse a on-the-wire SID to a DOM_SID
*****************************************************************/
-BOOL sid_parse(char *inbuf, size_t len, DOM_SID *sid)
+BOOL sid_parse(const char *inbuf, size_t len, DOM_SID *sid)
{
int i;
if (len < 8) return False;
@@ -482,7 +482,7 @@ BOOL sid_check_is_in_builtin(const DOM_SID *sid)
Calculates size of a sid.
*****************************************************************/
-size_t sid_size(DOM_SID *sid)
+size_t sid_size(const DOM_SID *sid)
{
if (sid == NULL)
return 0;
@@ -518,7 +518,7 @@ BOOL non_mappable_sid(DOM_SID *sid)
return the binary string representation of a DOM_SID
caller must free
*/
-char *sid_binstring(DOM_SID *sid)
+char *sid_binstring(const DOM_SID *sid)
{
char *buf, *s;
int len = sid_size(sid);