[ofa-general] [PATCH] ibsim/sim_client.c: In sim_client_init, return -1 on error

hnrose at comcast.net hnrose at comcast.net
Sat Feb 14 12:37:03 PST 2009


Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
 umad2sim/sim_client.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/umad2sim/sim_client.c b/umad2sim/sim_client.c
index 59f81d5..06bb7a8 100644
--- a/umad2sim/sim_client.c
+++ b/umad2sim/sim_client.c
@@ -309,7 +309,7 @@ int sim_client_init(struct sim_client *sc)
   _exit:
 	sim_disconnect(sc);
 	sc->fd_ctl = sc->fd_pktin = sc->fd_pktout = -1;
-	return 0;
+	return -1;
 }
 
 void sim_client_exit(struct sim_client *sc)
-- 
1.5.6.4




More information about the general mailing list