Fixed a couple of const issues with the new code.
authorJeremy Allison <jra@samba.org>
Mon, 7 Jul 2003 17:04:48 +0000 (17:04 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 7 Jul 2003 17:04:48 +0000 (17:04 +0000)
Jeremy.

source/passdb/passdb.c
source/smbd/uid.c

index 4c50b051076c9de3973286cc0511b1d29d65b396..2a903deff0d2b63b62c810101e3440468b990557 100644 (file)
@@ -1080,7 +1080,7 @@ DOM_SID *local_uid_to_sid(DOM_SID *psid, uid_t uid)
  Convert a SID to uid - locally.
 ****************************************************************************/
 
-BOOL local_sid_to_uid(uid_t *puid, DOM_SID *psid, enum SID_NAME_USE *name_type)
+BOOL local_sid_to_uid(uid_t *puid, const DOM_SID *psid, enum SID_NAME_USE *name_type)
 {
        DOM_SID dom_sid;
        uint32 rid;
@@ -1177,7 +1177,7 @@ DOM_SID *local_gid_to_sid(DOM_SID *psid, gid_t gid)
  Convert a SID to gid - locally.
 ****************************************************************************/
 
-BOOL local_sid_to_gid(gid_t *pgid, DOM_SID *psid, enum SID_NAME_USE *name_type)
+BOOL local_sid_to_gid(gid_t *pgid, const DOM_SID *psid, enum SID_NAME_USE *name_type)
 {
        DOM_SID dom_sid;
        uint32 rid;
index 04ff0faa28053dfba0993a6298fd275b4f6d9183..6d67a63ccd1a99aa3e30d352b035f81dd9b15835 100644 (file)
@@ -565,7 +565,7 @@ static struct gid_sid_cache {
   Find a SID given a uid.
 *****************************************************************/  
 
-static BOOL fetch_sid_from_uid_cache(const DOM_SID *psid, uid_t uid)
+static BOOL fetch_sid_from_uid_cache(DOM_SID *psid, uid_t uid)
 {
        struct uid_sid_cache *pc;