[ofa-general] [PATCH] osm: use OSM_DEFAULT_PARTITION_CONFIG_FILE instead of hard-coded string
Yevgeny Kliteynik
kliteyn at dev.mellanox.co.il
Sun Nov 18 03:59:01 PST 2007
Use default partition file instead of a hard-coded string
Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
opensm/opensm/osm_prtn.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opensm/opensm/osm_prtn.c b/opensm/opensm/osm_prtn.c
index 8b20459..ec42da1 100644
--- a/opensm/opensm/osm_prtn.c
+++ b/opensm/opensm/osm_prtn.c
@@ -355,7 +355,7 @@ ib_api_status_t osm_prtn_make_partitions(osm_log_t * const p_log,
osm_prtn_t *p;
file_name = p_subn->opt.partition_config_file ?
- p_subn->opt.partition_config_file : "/etc/osm-partitions.conf";
+ p_subn->opt.partition_config_file : OSM_DEFAULT_PARTITION_CONFIG_FILE;
if (stat(file_name, &statbuf))
is_config = FALSE;
--
1.5.1.4
More information about the general
mailing list