summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-09-22 10:09:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:01:03 -0500
commit7fdd258c396ede023e8e5e8067779dc9dfe94ec1 (patch)
tree8403c6701330ddfba53131218047893d174e2936 /source3
parenta6bb76765aa9759ab8869968bacbd3c5104a9db8 (diff)
downloadsamba-7fdd258c396ede023e8e5e8067779dc9dfe94ec1.tar.gz
samba-7fdd258c396ede023e8e5e8067779dc9dfe94ec1.tar.bz2
samba-7fdd258c396ede023e8e5e8067779dc9dfe94ec1.zip
r18820: Comment out some unused functions.
Guenther (This used to be commit cdc81927dbbc542500211ad8e6815815d7764731)
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/gpo_util.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/source3/libads/gpo_util.c b/source3/libads/gpo_util.c
index aed99d694f..714dcacb8b 100644
--- a/source3/libads/gpo_util.c
+++ b/source3/libads/gpo_util.c
@@ -37,6 +37,7 @@ struct snapin_table {
ADS_STATUS (*snapin_fn)(ADS_STRUCT *, TALLOC_CTX *mem_ctx, const char *, const char *);
};
+#if 0 /* unused */
static struct gpo_table gpo_default_policy[] = {
{ DEFAULT_DOMAIN_POLICY,
"31B2F340-016D-11D2-945F-00C04FB984F9" },
@@ -44,7 +45,7 @@ static struct gpo_table gpo_default_policy[] = {
"6AC1786C-016F-11D2-945F-00C04fB984F9" },
{ NULL, NULL }
};
-
+#endif
/* the following is seen in gPCMachineExtensionNames or gPCUserExtensionNames */
@@ -127,6 +128,19 @@ static const char *guid_string_to_name(const char *guid_string, struct gpo_table
return NULL;
}
+static const char *snapin_guid_string_to_name(const char *guid_string,
+ struct snapin_table *table)
+{
+ int i;
+ for (i = 0; table[i].guid_string; i++) {
+ if (strequal(guid_string, table[i].guid_string)) {
+ return table[i].name;
+ }
+ }
+ return NULL;
+}
+
+#if 0 /* unused */
static const char *default_gpo_name_to_guid_string(const char *name)
{
return name_to_guid_string(name, gpo_default_policy);
@@ -136,6 +150,7 @@ static const char *default_gpo_guid_string_to_name(const char *guid)
{
return guid_string_to_name(guid, gpo_default_policy);
}
+#endif
const char *cse_gpo_guid_string_to_name(const char *guid)
{
@@ -149,7 +164,7 @@ static const char *cse_gpo_name_to_guid_string(const char *name)
const char *cse_snapin_gpo_guid_string_to_name(const char *guid)
{
- return guid_string_to_name(guid, gpo_cse_snapin_extensions);
+ return snapin_guid_string_to_name(guid, gpo_cse_snapin_extensions);
}
void dump_gp_ext(struct GP_EXT *gp_ext)