summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-06-14 00:47:08 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-06-14 00:47:08 +0000
commitbaef1358d2b5a98a592f0247911a31d79148dcba (patch)
treef878164ca8d1526f723f25796a3ca2cef51a5d4f /source3/lib
parentd179b191794c06626375692ea81c1931db57f550 (diff)
downloadsamba-baef1358d2b5a98a592f0247911a31d79148dcba.tar.gz
samba-baef1358d2b5a98a592f0247911a31d79148dcba.tar.bz2
samba-baef1358d2b5a98a592f0247911a31d79148dcba.zip
Add const, kill of useless casts and therefore eliminate warnings.
Andrew Bartlett (This used to be commit 29490f214750acd44cee6c4ab1354722d82d853a)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index 3ad9e909d8..ca9ebb14d2 100644
--- a/source3/lib/util_sid.c
+++ b/source3/lib/util_sid.c
@@ -252,7 +252,7 @@ BOOL sid_split_rid(DOM_SID *sid, uint32 *rid)
Return the last rid from the end of a sid
*****************************************************************/
-BOOL sid_peek_rid(DOM_SID *sid, uint32 *rid)
+BOOL sid_peek_rid(const DOM_SID *sid, uint32 *rid)
{
if (!sid || !rid)
return False;
@@ -269,7 +269,7 @@ BOOL sid_peek_rid(DOM_SID *sid, uint32 *rid)
and check the sid against the exp_dom_sid
*****************************************************************/
-BOOL sid_peek_check_rid(DOM_SID *exp_dom_sid,DOM_SID *sid, uint32 *rid)
+BOOL sid_peek_check_rid(const DOM_SID *exp_dom_sid, const DOM_SID *sid, uint32 *rid)
{
if (!exp_dom_sid || !sid || !rid)
return False;
@@ -280,7 +280,7 @@ BOOL sid_peek_check_rid(DOM_SID *exp_dom_sid,DOM_SID *sid, uint32 *rid)
return False;
}
- return sid_peek_rid(sid,rid);
+ return sid_peek_rid(sid, rid);
}
/*****************************************************************