build fixes
authorDaniel Kouřil <kouril@ics.muni.cz>
Tue, 16 Mar 2010 17:04:02 +0000 (17:04 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Tue, 16 Mar 2010 17:04:02 +0000 (17:04 +0000)
org.glite.lb.server/src/bkindex.c
org.glite.lb.server/src/bkserverd.c
org.glite.lb.server/src/mon-db.c

index 2439eab..ffa359a 100644 (file)
@@ -46,6 +46,7 @@ enum lb_srv_perf_sink sink_mode;
 char   *server_key,*server_cert;
 int    enable_lcas;
 int    proxy_purge;
+struct _edg_wll_authz_policy authz_policy;
 
 static struct option opts[] = {
        { "mysql",1,NULL,'m' },
index 15c42f8..47f2acb 100644 (file)
@@ -557,6 +557,7 @@ int main(int argc, char *argv[])
        if (fprintf(fpid, "%d", getpid()) <= 0) { perror(pidfile); return 1; }
        if (fclose(fpid) != 0) { perror(pidfile); return 1; }
 
+       edg_wll_InitContext(&ctx);
        if (policy_file && parse_server_policy(ctx, policy_file, &authz_policy)) {
                char *et, *ed;
 
@@ -766,7 +767,6 @@ int main(int argc, char *argv[])
        if (!dbstring) dbstring = strdup(DEFAULTCS);
                
        /* Just check the database and let it be. The slaves do the job. */
-       edg_wll_InitContext(&ctx);
        if (wait_for_open(ctx, dbstring)) {
                edg_wll_Close(ctx);
                edg_wll_FreeContext(ctx);
index c02fd03..20b6d5e 100644 (file)
@@ -42,6 +42,7 @@ enum lb_srv_perf_sink sink_mode;
 char   *server_key,*server_cert;
 int    enable_lcas;
 int    proxy_purge;
+struct _edg_wll_authz_policy authz_policy;
 
 static struct option opts[] = {
        { "mysql",1,NULL,'m' },