Make idmap_init() static
authorVolker Lendecke <vl@samba.org>
Wed, 2 Jul 2008 11:33:25 +0000 (13:33 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 2 Jul 2008 11:34:09 +0000 (13:34 +0200)
This is called only from idmap_alloc_init, which feels kindof weird.

Digging deeper in the code...
(This used to be commit c8d1bbfddce41cd6bf37dd0a622ef3437a24b492)

source3/include/proto.h
source3/winbindd/idmap.c

index e918b258c8de9de99c28bc363081bad81479482e..ae5481dc31c6a003e48921ba2065e42b850763b3 100644 (file)
@@ -10483,7 +10483,6 @@ NTSTATUS smb_register_idmap_alloc(int version, const char *name,
                                  struct idmap_alloc_methods *methods);
 NTSTATUS idmap_close(void);
 NTSTATUS idmap_init_cache(void);
-NTSTATUS idmap_init(void);
 NTSTATUS idmap_allocate_uid(struct unixid *id);
 NTSTATUS idmap_allocate_gid(struct unixid *id);
 NTSTATUS idmap_set_uid_hwm(struct unixid *id);
index c0565964702d2d39d097a1c862d9a3adeee3c1a3..32fc3dc9751222e171e7120879100f131c8f6f29 100644 (file)
@@ -279,7 +279,7 @@ NTSTATUS idmap_init_cache(void)
 /****************************************************************************
  ****************************************************************************/
 
-NTSTATUS idmap_init(void)
+static NTSTATUS idmap_init(void)
 {
        NTSTATUS ret;
        static NTSTATUS idmap_init_status = NT_STATUS_UNSUCCESSFUL;