[ofa-general] Re: [IBSIM][Trivial] initialize netstarted to 0

Sasha Khapyorsky sashak at voltaire.com
Mon Aug 18 13:20:11 PDT 2008


Hi Al,

On 10:04 Wed 13 Aug     , Al Chu wrote:
> From c94d427feb3f8ca9f7b339dab618e61b04c41914 Mon Sep 17 00:00:00 2001
> From: Albert Chu <chu11 at llnl.gov>
> Date: Wed, 13 Aug 2008 09:54:43 -0700
> Subject: [PATCH] initialize netstarted to 0
> 
> 
> Signed-off-by: Albert Chu <chu11 at llnl.gov>
> ---
>  ibsim/sim_cmd.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/ibsim/sim_cmd.c b/ibsim/sim_cmd.c
> index 6bf1e29..e4591d1 100644
> --- a/ibsim/sim_cmd.c
> +++ b/ibsim/sim_cmd.c
> @@ -752,7 +752,7 @@ static int do_disconnect_client(FILE * out, int id)
>  	return 0;
>  }
>  
> -int netstarted;
> +int netstarted = 0;

It is global variable, should be initialized by default.

Sasha



More information about the general mailing list