summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-07-28 09:23:53 (GMT)
committerThomas Haller <thaller@redhat.com>2023-07-28 10:31:20 (GMT)
commit859b89dc567a60007151037bb2eb0cccbfca1f8c (patch)
tree8e21761797a96c0c635263b150b2c84c758a8548
parent2e0ae977e4d9172fda78dbf0b31b47bd59e7ae3e (diff)
downloadlibnl-859b89dc567a60007151037bb2eb0cccbfca1f8c.zip
libnl-859b89dc567a60007151037bb2eb0cccbfca1f8c.tar.gz
libnl-859b89dc567a60007151037bb2eb0cccbfca1f8c.tar.bz2
include: drop now unused min()/max()/min_t()/max_t() macros
-rw-r--r--include/netlink-private/netlink.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/netlink-private/netlink.h b/include/netlink-private/netlink.h
index d86a55d..3d0c216 100644
--- a/include/netlink-private/netlink.h
+++ b/include/netlink-private/netlink.h
@@ -153,23 +153,6 @@ static inline int nl_cb_call(struct nl_cb *cb, enum nl_cb_type type, struct nl_m
#undef __deprecated
#define __deprecated __attribute__ ((deprecated))
-#define min(x,y) ({ \
- __typeof__(x) _x = (x); \
- __typeof__(y) _y = (y); \
- (void) (&_x == &_y); \
- _x < _y ? _x : _y; })
-
-#define max(x,y) ({ \
- __typeof__(x) _x = (x); \
- __typeof__(y) _y = (y); \
- (void) (&_x == &_y); \
- _x > _y ? _x : _y; })
-
-#define min_t(type,x,y) \
- ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })
-#define max_t(type,x,y) \
- ({ type __x = (x); type __y = (y); __x > __y ? __x: __y; })
-
extern int nl_cache_parse(struct nl_cache_ops *, struct sockaddr_nl *,
struct nlmsghdr *, struct nl_parser_param *);