diff options
author | Tom Gundersen <teg@jklm.no> | 2015-04-10 20:39:43 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-04-16 16:47:23 +0100 |
commit | aa02962840e10fa7d052760b98a5c092dd0990e1 (patch) | |
tree | 1727b9e7fe7fe440b3d6b7d3f0b27a19594c9ba5 /src/libudev/libudev-device-internal.h | |
parent | 2d0c1561340efff3265fe89b05eae4ee8f4037a7 (diff) |
shared: move assert_return_errno() from libudev
This should not be used for any new code, as we don't set errno in new code,
but there are several legacy users, so let's keep it in shared.
Diffstat (limited to 'src/libudev/libudev-device-internal.h')
-rw-r--r-- | src/libudev/libudev-device-internal.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libudev/libudev-device-internal.h b/src/libudev/libudev-device-internal.h index 18ae7a93f9..b6ecce80e9 100644 --- a/src/libudev/libudev-device-internal.h +++ b/src/libudev/libudev-device-internal.h @@ -51,12 +51,3 @@ struct udev_device { }; struct udev_device *udev_device_new(struct udev *udev); - -#define assert_return_errno(expr, r, err) \ - do { \ - if (_unlikely_(!(expr))) { \ - log_assert_failed_return(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__); \ - errno = err; \ - return (r); \ - } \ - } while (false) |