summaryrefslogtreecommitdiff
path: root/pkg/iproute2/patch/0012-Use-static-inline-function-for-min.patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2024-03-16 00:17:10 -0700
committerMichael Forney <mforney@mforney.org>2024-03-17 00:27:08 -0700
commitb2f81fb67cfd273ed556da99d8489dfd4fe1e9c0 (patch)
tree90b10ad0a3af33474c9fbfa55bde6fe061f1055f /pkg/iproute2/patch/0012-Use-static-inline-function-for-min.patch
parent0abe55ca58448382acd9de91e2474d9735d3b72f (diff)
iproute2: Update to 6.8.0
Diffstat (limited to 'pkg/iproute2/patch/0012-Use-static-inline-function-for-min.patch')
-rw-r--r--pkg/iproute2/patch/0012-Use-static-inline-function-for-min.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/iproute2/patch/0012-Use-static-inline-function-for-min.patch b/pkg/iproute2/patch/0012-Use-static-inline-function-for-min.patch
index 5c1fbe49..f5b6088a 100644
--- a/pkg/iproute2/patch/0012-Use-static-inline-function-for-min.patch
+++ b/pkg/iproute2/patch/0012-Use-static-inline-function-for-min.patch
@@ -1,4 +1,4 @@
-From 610a720da48cb1b4de2364d70215450275edebcb Mon Sep 17 00:00:00 2001
+From eb780d31a912363846e54266db7395a82f14ebb2 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Mon, 24 Jun 2019 17:38:56 -0700
Subject: [PATCH] Use static inline function for min()
@@ -10,10 +10,10 @@ It is only called to calculate a minimum `int`, so specialize for
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/include/utils.h b/include/utils.h
-index b6c468e9..8bdbb369 100644
+index 9ba129b8..a8a56fca 100644
--- a/include/utils.h
+++ b/include/utils.h
-@@ -273,13 +273,10 @@ unsigned int print_name_and_link(const char *fmt,
+@@ -279,13 +279,10 @@ unsigned int print_name_and_link(const char *fmt,
# define offsetof(type, member) ((size_t) &((type *)0)->member)
#endif
@@ -29,8 +29,8 @@ index b6c468e9..8bdbb369 100644
+ return a < b ? a : b;
+}
- #ifndef __check_format_string
- # define __check_format_string(pos_str, pos_args) \
+ #ifndef max
+ # define max(x, y) ({ \
--
-2.34.1
+2.44.0