pass program arguments to glite_jp_get_conf
authorMiloš Mulač <mulac@civ.zcu.cz>
Tue, 4 Apr 2006 11:03:43 +0000 (11:03 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Tue, 4 Apr 2006 11:03:43 +0000 (11:03 +0000)
org.glite.jp.index/examples/jpis-test.c

index b0a2783..ef926dd 100644 (file)
@@ -47,7 +47,7 @@ int main(int argc,char *argv[])
                
 
                glite_jp_init_context(&ctx);
-               glite_jp_get_conf(0, NULL, NULL, &conf);
+               glite_jp_get_conf(argc, argv, NULL, &conf);
                if (default_server) strcpy(server, default_server);
                else snprintf(server, sizeof(server), "http://localhost:%s", conf->port ? conf->port : GLITE_JPIS_DEFAULT_PORT_STR);
                printf("JP index server: %s\n", server);