From a75c2ccb893bd27cfedfd03e75dd0b49303187b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Thu, 13 Oct 2005 13:00:40 +0000 Subject: [PATCH] calloc +1 prefixes to indexed attributes --- org.glite.jp.index/src/conf.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/org.glite.jp.index/src/conf.c b/org.glite.jp.index/src/conf.c index d77c7db..75252a3 100644 --- a/org.glite.jp.index/src/conf.c +++ b/org.glite.jp.index/src/conf.c @@ -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; -- 1.8.2.3