Merge pull request #10861 from yuwata/udev-list-cleanups

libudev: several cleanups for udev-list
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-11-23 09:12:56 +01:00
committed by GitHub
10 changed files with 173 additions and 189 deletions
+6
View File
@@ -334,6 +334,12 @@ static inline int __coverity_check__(int condition) {
} \
} while (false)
#define return_with_errno(r, err) \
do { \
errno = abs(err); \
return r; \
} while (false)
#define PTR_TO_INT(p) ((int) ((intptr_t) (p)))
#define INT_TO_PTR(u) ((void *) ((intptr_t) (u)))
#define PTR_TO_UINT(p) ((unsigned) ((uintptr_t) (p)))