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

Re: [Minios-devel] [UNIKRAFT PATCH v3 01/10] errptr.h: Keep the sign for errno values in ERR2PTR, PTR2ERR



Reviewed-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx>

Costin Lupu <costin.lupu@xxxxxxxxx> writes:

> Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
> ---
>  include/uk/errptr.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/uk/errptr.h b/include/uk/errptr.h
> index 5806f73..6e85994 100644
> --- a/include/uk/errptr.h
> +++ b/include/uk/errptr.h
> @@ -60,7 +60,7 @@
>   */
>  #ifndef PTR2ERR
>  #define PTR2ERR(ptr)                                 \
> -     ((int) -((__sptr)(ptr)))
> +     ((int) ((__sptr)(ptr)))
>  #endif
>  
>  /**
> @@ -70,7 +70,7 @@
>   */
>  #ifndef ERR2PTR
>  #define ERR2PTR(err)                                 \
> -     ((void *) -((__sptr)(err)))
> +     ((void *) ((__sptr)(err)))
>  #endif
>  
>  #endif /* __UK_ERRPTR_H__ */
> -- 
> 2.11.0
>

-- 
Yuri Volchkov
Software Specialist

NEC Europe Ltd
Kurfürsten-Anlage 36
D-69115 Heidelberg

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.