On 12/21/2010 05:40 PM, Angus Salkeld wrote:
> Signed-off-by: Angus Salkeld <[email protected]>
> ---
>  exec/util.h                  |    2 +-
>  include/corosync/corotypes.h |    4 +---
>  2 files changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/exec/util.h b/exec/util.h
> index 519254a..729ef34 100644
> --- a/exec/util.h
> +++ b/exec/util.h
> @@ -80,7 +80,7 @@ static inline cs_error_t hdb_error_to_cs (int res)          
> \
>                       return (CS_ERR_NO_RESOURCES);           \
>               } else                                          \
>               if (res == -EACCES) {                           \
> -                     return (CS_ERR_SECURITY);               \
> +                     return (CS_ERR_ACCESS);                 \
>               }                                               \
>               return (CS_ERR_LIBRARY);                        \
>       }                                                       \
> diff --git a/include/corosync/corotypes.h b/include/corosync/corotypes.h
> index ecdc749..394ff7b 100644
> --- a/include/corosync/corotypes.h
> +++ b/include/corosync/corotypes.h
> @@ -168,9 +168,6 @@ static inline cs_error_t qb_to_cs_error (int result)
>       case EACCES:
>               err = CS_ERR_ACCESS;
>               break;
> -     case ECONNREFUSED:
> -             err = CS_ERR_SECURITY;
> -             break;
>       case EOVERFLOW:
>               err = CS_ERR_NAME_TOO_LONG;
>               break;
> @@ -201,6 +198,7 @@ static inline cs_error_t qb_to_cs_error (int result)
>       case E2BIG:
>               err = CS_ERR_TOO_BIG;
>               break;
> +     case ECONNREFUSED:
>       case ENOTCONN:
>       default:
>               err = CS_ERR_LIBRARY;

can you submit this as a patch for master as well?

Thanks
-steve

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to