Преглед изворни кода

fix compiler warnings, caused by fix for 47395,47397

Ludwig Krispenz пре 12 година
родитељ
комит
00c4544c39

+ 4 - 0
ldap/servers/plugins/acctpolicy/acct_util.c

@@ -28,6 +28,10 @@ Hewlett-Packard Development Company, L.P.
 
 /* Globals */
 static void* plugin_id = NULL;
+/* attributes that no clients are allowed to add or modify */
+static char *protected_attrs_login_recording [] = { "createTimestamp",
+                                        NULL };
+
 
 /*
    Checks whether an entry has a particular attribute type, and optionally

+ 0 - 4
ldap/servers/plugins/acctpolicy/acctpolicy.h

@@ -35,10 +35,6 @@ Hewlett-Packard Development Company, L.P.
 #define DEFAULT_INACT_LIMIT_ATTR "accountInactivityLimit"
 #define DEFAULT_RECORD_LOGIN 1
 
-/* attributes that no clients are allowed to add or modify */
-static char *protected_attrs_login_recording [] = { "createTimestamp",
-                                        NULL };
-
 #define PLUGIN_VENDOR "Hewlett-Packard Company"
 #define PLUGIN_VERSION "1.0"
 #define PLUGIN_CONFIG_DN "cn=config,cn=Account Policy Plugin,cn=plugins,cn=config"