From: Miloš Mulač Date: Tue, 4 Apr 2006 11:03:43 +0000 (+0000) Subject: pass program arguments to glite_jp_get_conf X-Git-Tag: glite-jp-index_R_1_2_1~3 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=d95ac35599bb4a1e954c6d36e57c49a39ad6fbca;p=jra1mw.git pass program arguments to glite_jp_get_conf --- diff --git a/org.glite.jp.index/examples/jpis-test.c b/org.glite.jp.index/examples/jpis-test.c index b0a2783..ef926dd 100644 --- a/org.glite.jp.index/examples/jpis-test.c +++ b/org.glite.jp.index/examples/jpis-test.c @@ -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);