svn commit: samba r18820 - in branches/SAMBA_3_0/source/libads: .
gd at samba.org
gd at samba.org
Fri Sep 22 10:09:15 GMT 2006
Author: gd
Date: 2006-09-22 10:09:15 +0000 (Fri, 22 Sep 2006)
New Revision: 18820
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18820
Log:
Comment out some unused functions.
Guenther
Modified:
branches/SAMBA_3_0/source/libads/gpo_util.c
Changeset:
Modified: branches/SAMBA_3_0/source/libads/gpo_util.c
===================================================================
--- branches/SAMBA_3_0/source/libads/gpo_util.c 2006-09-22 09:34:25 UTC (rev 18819)
+++ branches/SAMBA_3_0/source/libads/gpo_util.c 2006-09-22 10:09:15 UTC (rev 18820)
@@ -37,6 +37,7 @@
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,8 +45,8 @@
"6AC1786C-016F-11D2-945F-00C04fB984F9" },
{ NULL, NULL }
};
+#endif
-
/* the following is seen in gPCMachineExtensionNames or gPCUserExtensionNames */
static struct gpo_table gpo_cse_extensions[] = {
@@ -127,6 +128,19 @@
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 @@
{
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 @@
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)
More information about the samba-cvs
mailing list