[corosync] [PATCH] hdb* functions already returns -error value

Steven Dake sdake at redhat.com
Wed Nov 30 17:41:42 GMT 2011


Reviewed-by: Steven Dake <sdake at redhat.com>

On 11/30/2011 07:18 AM, Jan Friesse wrote:
> So it's wrong to define hdb_error_to_cs and pass -error value, because
> this creates --error = error = CS_OK.
> 
> Signed-off-by: Jan Friesse <jfriesse at redhat.com>
> ---
>  lib/util.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/lib/util.h b/lib/util.h
> index 1d86deb..fc5d502 100644
> --- a/lib/util.h
> +++ b/lib/util.h
> @@ -38,7 +38,7 @@
>  
>  #include <corosync/corotypes.h>
>  
> -#define hdb_error_to_cs(_result_) qb_to_cs_error(-_result_)
> +#define hdb_error_to_cs(_result_) qb_to_cs_error(_result_)
>  
>  #ifdef HAVE_SMALL_MEMORY_FOOTPRINT
>  #define IPC_REQUEST_SIZE        1024*64



More information about the discuss mailing list