[ofa-general] [PATCH] opensm/osm_ucast_file.c: Fix return status from do_ucast_file_load when file name is not provided
Hal Rosenstock
hnrose at comcast.net
Thu Aug 6 11:19:28 PDT 2009
Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/opensm/opensm/osm_ucast_file.c b/opensm/opensm/osm_ucast_file.c
index 2505c46..a22b936 100644
--- a/opensm/opensm/osm_ucast_file.c
+++ b/opensm/opensm/osm_ucast_file.c
@@ -1,6 +1,7 @@
/*
* Copyright (c) 2006,2007 Voltaire, Inc. All rights reserved.
* Copyright (c) 2008 Mellanox Technologies LTD. All rights reserved.
+ * Copyright (c) 2009 HNR Consulting. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
@@ -136,7 +137,7 @@ static int do_ucast_file_load(void *context)
OSM_LOG(&p_osm->log, OSM_LOG_VERBOSE,
"LFTs file name is not given; "
"using default routing algorithm\n");
- return 1;
+ return -1;
}
file = fopen(file_name, "r");
More information about the general
mailing list