#endif
struct berval **default_referral = NULL;
-int g_argc;
-char **g_argv;
/*
* global variables that need mutex protection
#ifdef HAVE_NT_SERVICE_MANAGER
#define MAIN_RETURN(x) return
-struct sockaddr_in bind_addr;
+static struct sockaddr_in bind_addr;
void CommenceStartupProcessing( LPCTSTR serverName,
void(*stopper)(int));
#ifdef LOG_LOCAL4
int syslogUser = DEFAULT_SYSLOG_USER;
#endif
+
+ int g_argc = argc;
+ char **g_argv = argv;
#ifdef HAVE_NT_SERVICE_MANAGER
char *configfile = ".\\slapd.conf";
}
#endif
- g_argc = argc;
- g_argv = argv;
#ifdef HAVE_NT_SERVICE_MANAGER
{
LDAP_SLAPD_V (char *) replogfile;
LDAP_SLAPD_V (const char) Versionstr[];
LDAP_SLAPD_V (struct slap_limits_set) deflimit;
-LDAP_SLAPD_V (int) g_argc;
+
LDAP_SLAPD_V (slap_access_t) global_default_access;
LDAP_SLAPD_V (int) global_lastmod;
LDAP_SLAPD_V (int) global_idletimeout;
LDAP_SLAPD_V (char *) slapd_pid_file;
LDAP_SLAPD_V (char *) slapd_args_file;
-LDAP_SLAPD_V (char **) g_argv;
LDAP_SLAPD_V (time_t) starttime;
/* use time(3) -- no mutex */
}
/* check backend */
- if( select_backend( &e->e_nname, is_entry_referral(e), nosubs ) != be ) {
+ if( select_backend( &e->e_nname, is_entry_referral(e), nosubordinates )
+ != be )
+ {
fprintf( stderr, "%s: line %d: "
"database (%s) not configured to hold \"%s\"\n",
progname, lineno,
int truncatemode = 0;
int verbose = 0;
int continuemode = 0;
-int nosubs = 0;
+int nosubordinates = 0;
char *ldiffile = NULL;
FILE *ldiffp = NULL;
* entire context
*/
if (be->be_glueflags & SLAP_GLUE_INSTANCE)
- nosubs = 1;
+ nosubordinates = 1;
} else if ( dbnum == -1 ) {
be = &backends[dbnum=0];
* glue subordinate, find the master.
*/
while (be->be_glueflags & SLAP_GLUE_SUBORDINATE) {
- nosubs = 1;
+ nosubordinates = 1;
be++;
}
extern int appendmode;
extern int verbose;
extern int continuemode;
-extern int nosubs;
+extern int nosubordinates;
extern char *ldiffile;
extern FILE *ldiffp;