summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-26 18:39:11 +0100
committerVolker Lendecke <vl@samba.org>2008-03-28 13:44:30 +0100
commit26fead2c6ee5e26f9a0360222c8231f0409f68a8 (patch)
tree28778b9c1114f71a34db4259fb3d54758a6d41b8 /source3
parentafa682943c1799f02b6a86f8f872fd2ce2d62da5 (diff)
downloadsamba-26fead2c6ee5e26f9a0360222c8231f0409f68a8.tar.gz
samba-26fead2c6ee5e26f9a0360222c8231f0409f68a8.tar.bz2
samba-26fead2c6ee5e26f9a0360222c8231f0409f68a8.zip
Make some fns static
(This used to be commit e04fc36f223d8d905a930c077a6cf6c48ee57af7)
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/idmap_cache.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/source3/winbindd/idmap_cache.c b/source3/winbindd/idmap_cache.c
index cf46196ebe..f7e1d4e6d1 100644
--- a/source3/winbindd/idmap_cache.c
+++ b/source3/winbindd/idmap_cache.c
@@ -70,12 +70,8 @@ struct idmap_cache_ctx *idmap_cache_init(TALLOC_CTX *memctx)
return cache;
}
-void idmap_cache_shutdown(struct idmap_cache_ctx *cache)
-{
- talloc_free(cache);
-}
-
-NTSTATUS idmap_cache_build_sidkey(TALLOC_CTX *ctx, char **sidkey, const struct id_map *id)
+static NTSTATUS idmap_cache_build_sidkey(TALLOC_CTX *ctx, char **sidkey,
+ const struct id_map *id)
{
fstring sidstr;
@@ -89,7 +85,8 @@ NTSTATUS idmap_cache_build_sidkey(TALLOC_CTX *ctx, char **sidkey, const struct i
return NT_STATUS_OK;
}
-NTSTATUS idmap_cache_build_idkey(TALLOC_CTX *ctx, char **idkey, const struct id_map *id)
+static NTSTATUS idmap_cache_build_idkey(TALLOC_CTX *ctx, char **idkey,
+ const struct id_map *id)
{
*idkey = talloc_asprintf(ctx, "IDMAP/%s/%lu",
(id->xid.type==ID_TYPE_UID)?"UID":"GID",
@@ -256,7 +253,7 @@ done:
return ret;
}
-NTSTATUS idmap_cache_fill_map(struct id_map *id, const char *value)
+static NTSTATUS idmap_cache_fill_map(struct id_map *id, const char *value)
{
char *rem;
@@ -304,14 +301,6 @@ failed:
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
-bool idmap_cache_is_negative(const char *val)
-{
- if ( ! strcmp("IDMAP/NEGATIVE", val)) {
- return True;
- }
- return False;
-}
-
/* search the cahce for the SID an return a mapping if found *
*
* 4 cases are possible