Re: cloned lines in main of main.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks,
pushed

Regards
-steve
On 10/06/2011 03:09 AM, Masatake YAMATO wrote:
> Hi,
> 
> I found following code:
> 
> 	res = corosync_main_config_compatibility_read (objdb,
> 		&minimum_sync_mode,
> 		&error_string);
> 	if (res == -1) {
> 		log_printf (LOGSYS_LEVEL_ERROR, "%s", error_string);
> 		corosync_exit_error (AIS_DONE_MAINCONFIGREAD);
> 	}
> 
> 	res = corosync_main_config_compatibility_read (objdb,
> 		&minimum_sync_mode,
> 		&error_string);
> 	if (res == -1) {
> 		log_printf (LOGSYS_LEVEL_ERROR, "%s", error_string);
> 		corosync_exit_error (AIS_DONE_MAINCONFIGREAD);
> 	}
> 
> It seems that some lines are cloned. Is it necessary?
> If not, please install following patch.
> 
> Signed-off-by: Masatake YAMATO <yamato@xxxxxxxxxx>
> diff --git a/exec/main.c b/exec/main.c
> index 582f1e2..aacdc2f 100644
> --- a/exec/main.c
> +++ b/exec/main.c
> @@ -1453,14 +1453,6 @@ int main (int argc, char **argv, char **envp)
>  		corosync_exit_error (AIS_DONE_MAINCONFIGREAD);
>  	}
>  
> -	res = corosync_main_config_compatibility_read (objdb,
> -		&minimum_sync_mode,
> -		&error_string);
> -	if (res == -1) {
> -		log_printf (LOGSYS_LEVEL_ERROR, "%s", error_string);
> -		corosync_exit_error (AIS_DONE_MAINCONFIGREAD);
> -	}
> -
>  	/* create the main runtime object */
>  	objdb->object_create (OBJECT_PARENT_HANDLE,
>  		&object_runtime_handle,
> 
> 
> _______________________________________________
> discuss mailing list
> discuss@xxxxxxxxxxxx
> http://lists.corosync.org/mailman/listinfo/discuss

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux