calloc +1
authorMiloš Mulač <mulac@civ.zcu.cz>
Thu, 13 Oct 2005 13:00:40 +0000 (13:00 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Thu, 13 Oct 2005 13:00:40 +0000 (13:00 +0000)
 prefixes to indexed attributes

org.glite.jp.index/src/conf.c

index d77c7db..75252a3 100644 (file)
@@ -20,15 +20,14 @@ int glite_jp_get_conf(int argc, char **argv, char *config_file, glite_jp_is_conf
 
        conf = calloc(1, sizeof(*conf));
 
-       conf->attrs = calloc(3, sizeof(*conf->attrs));
+       conf->attrs = calloc(4, sizeof(*conf->attrs));
        conf->attrs[0] = strdup("http://egee.cesnet.cz/en/WSDL/jp-system:owner");
        conf->attrs[1] = strdup("http://egee.cesnet.cz/en/WSDL/jp-system:jobId");
        conf->attrs[2] = strdup("http://egee.cesnet.cz/en/Schema/LB/Attributes:finalStatus");
 
-       conf->indexed_attrs = calloc(4, sizeof(*conf->indexed_attrs));
-       conf->indexed_attrs[0] = strdup("owner");
-       conf->indexed_attrs[1] = strdup("user");
-       conf->indexed_attrs[2] = strdup("finalStatus");
+       conf->indexed_attrs = calloc(3, sizeof(*conf->indexed_attrs));
+       conf->indexed_attrs[0] = strdup("http://egee.cesnet.cz/en/WSDL/jp-system:owner");
+       conf->indexed_attrs[1] = strdup("http://egee.cesnet.cz/en/Schema/LB/Attributes:finalStatus");
 
        // XXX: some plugin names should come here in future
        conf->plugins = NULL;