summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-08-09 00:03:23 +0200
committerMichael Adam <obnox@samba.org>2008-08-09 01:15:57 +0200
commitf07cfe3b6889425d69f77571f90c5b541e526e01 (patch)
tree809964be21f1d8ea39aaf658b4f3f62781f3c331
parent3acde0d74711e4e7169dd4b0a0a2ea8fa476cef2 (diff)
downloadsamba-f07cfe3b6889425d69f77571f90c5b541e526e01.tar.gz
samba-f07cfe3b6889425d69f77571f90c5b541e526e01.tar.bz2
samba-f07cfe3b6889425d69f77571f90c5b541e526e01.zip
lib/access: make client_match() public.
Michael (This used to be commit 1b2dec93b635dfd23af78a370c223ea2dd486aa7)
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/lib/access.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 01b7a354e2..0cafdf630f 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -293,6 +293,7 @@ char *lang_tdb_current(void);
/* The following definitions come from lib/access.c */
+bool client_match(const char *tok, const void *item);
bool allow_access(const char **deny_list,
const char **allow_list,
const char *cname,
diff --git a/source3/lib/access.c b/source3/lib/access.c
index db5d007deb..773823a609 100644
--- a/source3/lib/access.c
+++ b/source3/lib/access.c
@@ -175,7 +175,7 @@ static bool string_match(const char *tok,const char *s)
}
/* client_match - match host name and address against token */
-static bool client_match(const char *tok, const void *item)
+bool client_match(const char *tok, const void *item)
{
const char **client = (const char **)item;