s4 idmap: Make the sid_to_xid and xid_to_sid calls static.
authorKai Blin <kai@samba.org>
Wed, 22 Apr 2009 16:10:12 +0000 (18:10 +0200)
committerKai Blin <kai@samba.org>
Thu, 11 Feb 2010 22:56:35 +0000 (23:56 +0100)
Looking at the winbind interface, we should only be using the bulk conversion calls.

source4/winbind/idmap.c

index 153b5c363efd5fba6dfa5852e6b6e8cf63710b34..b37de8810b2956d6f99f831d67afb2cfc4f51f90 100644 (file)
@@ -199,8 +199,10 @@ struct idmap_context *idmap_init(TALLOC_CTX *mem_ctx,
  * possible or some other NTSTATUS that is more descriptive on failure.
  */
 
-NTSTATUS idmap_xid_to_sid(struct idmap_context *idmap_ctx, TALLOC_CTX *mem_ctx,
-               const struct unixid *unixid, struct dom_sid **sid)
+static NTSTATUS idmap_xid_to_sid(struct idmap_context *idmap_ctx,
+                                TALLOC_CTX *mem_ctx,
+                                const struct unixid *unixid,
+                                struct dom_sid **sid)
 {
        int ret;
        NTSTATUS status = NT_STATUS_NONE_MAPPED;
@@ -289,8 +291,10 @@ failed:
  * a trusted domain and idmap trusted only = true, NT_STATUS_NONE_MAPPED if the
  * mapping failed.
  */
-NTSTATUS idmap_sid_to_xid(struct idmap_context *idmap_ctx, TALLOC_CTX *mem_ctx,
-               const struct dom_sid *sid, struct unixid **unixid)
+static NTSTATUS idmap_sid_to_xid(struct idmap_context *idmap_ctx,
+                                TALLOC_CTX *mem_ctx,
+                                const struct dom_sid *sid,
+                                struct unixid **unixid)
 {
        int ret;
        NTSTATUS status = NT_STATUS_NONE_MAPPED;