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

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


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 10 Sep 2018 12:05:53 +0300
  • Cc: simon.kuenzer@xxxxxxxxx, yuri.volchkov@xxxxxxxxx
  • Delivery-date: Mon, 10 Sep 2018 09:06:22 +0000
  • Ironport-phdr: 9a23:mWHH1BOTEVsfB6KR0Ykl6mtUPXoX/o7sNwtQ0KIMzox0IvrzrarrMEGX3/hxlliBBdydt6obzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlKiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhSkHKTA37W/ZhM93gq1ZrhKsvABzz5LObY2JLvdyYr/RcNUHTmRBRMZRUClBD5uiYosIFOoBIedYr4/grFUIsBu+HRSsD/7oxzBUgX/2xrE60+UnEQ3c2AwgAsoOsGnPodrpL6ceS/i1zLTTwjnZdfNW3i7w5Y7VeR4iufGBRa98fMXMxUU1FA7Ijk+cpZL7Mz6XzOgAvXCX4/dvWO6ykWIqqAF8riKxysoihITFnJ8Zx1/a+Sh/3Y07P8e3SFRhbt6hCJZQsiaaOJZoTc46WGFovTo6yqUBuZ6mYCgG0JQnyADba/yAa4WI/BfjW/yQITd8nn5qZKm/iwyq8Ui90eLwTNO00FFSoipElNnDqGwN2gTO5sWIV/dx5ESs1DaV2wzN9O1JI1o4mKTDJ54k2LEwl54TsUrZHi/xnUX7lLOZdkI/+ui06uTnZK/qppuBN49slwHzKbghmtelDeQgLwgBRHKX+f671LH75032XK1KjuEqkqneqJ3aIMUbpqi4Aw9SyYYv8guwACm40NsGmXkKN1ZFeBOcj4j1IFHCOv/5Aum5g1i2lzdr3f/GNKX7AprRNnjDjKvhfbFl5k5HyQozyNdf55ROBrECPfL8REnxtd3GAR8jKAG0xfjoB8l51owEQm2DGLGWML7Ku1+S+u0vO/WMZJMSuDvlK/kl+uTujX4jlV8Deqmp2YcYaHC7HvRhPUWUenzsjckdHmcOpAUxV/bmh0OfUW0bW3HnWqM65zYgTY6rE4rHboSsm6Camje2GNtRfG8VJEqLFCLDcJ6YWvFETD+KP4c1mTsfSbmnDYs8zQyGvxS806dtaPDTrH5L/an/3cR4srWA3So58iZ5WpyQ
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

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


_______________________________________________
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®.