summaryrefslogtreecommitdiff
path: root/net-misc/dhcdrop/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-08-23 14:44:46 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-08-23 14:44:46 +0100
commitcdfd4f0c915964d401cba19362c7dea8e89ad1da (patch)
treef6d313d1b57913d1309e00a578166e1e10fa6b8d /net-misc/dhcdrop/files
parent05a34d98821265bf73820931936f86704b9002c6 (diff)
gentoo auto-resync : 23:08:2022 - 14:44:46
Diffstat (limited to 'net-misc/dhcdrop/files')
-rw-r--r--net-misc/dhcdrop/files/dhcdrop-0.5-lto.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/net-misc/dhcdrop/files/dhcdrop-0.5-lto.patch b/net-misc/dhcdrop/files/dhcdrop-0.5-lto.patch
new file mode 100644
index 000000000000..240303aa2bf2
--- /dev/null
+++ b/net-misc/dhcdrop/files/dhcdrop-0.5-lto.patch
@@ -0,0 +1,33 @@
+--- a/src/dhcdrop.h 2022-08-23 09:57:15.594679182 +0300
++++ b/src/dhcdrop.h 2022-08-23 09:57:31.034678048 +0300
+@@ -207,9 +207,9 @@
+ inline void replace_semicolons(char * str_ether);
+
+ /* Print ethernet address as hex-digits string */
+-inline void print_ether(const uint8_t * ether_addr);
++static void print_ether(const uint8_t * ether_addr);
+
+ /* Create random ethernet address and store to string 'str_mac_addr' */
+-inline void rand_ether_addr(char * str_mac_addr);
++static void rand_ether_addr(char * str_mac_addr);
+
+ #endif /* ifdef DHCDROP_H*/
+--- a/src/dhcdrop.c 2022-08-23 09:57:09.522679628 +0300
++++ b/src/dhcdrop.c 2022-08-23 09:57:47.810676815 +0300
+@@ -1879,14 +1879,14 @@
+ }
+ }
+
+-inline void print_ether(const uint8_t * ether_addr)
++static void print_ether(const uint8_t * ether_addr)
+ {
+ int i;
+ for(i = 0; i < ETH_ALEN; ++i)
+ printf((i == (ETH_ALEN - 1) ) ? "%02X" :"%02X:", ether_addr[i]);
+ }
+
+-inline void rand_ether_addr(char * str_mac_addr) /* Minimal size of str_mac_addr must be STR_MAC_LEN (18) */
++static void rand_ether_addr(char * str_mac_addr) /* Minimal size of str_mac_addr must be STR_MAC_LEN (18) */
+ {
+ /* Fill first byte */
+ strncat(str_mac_addr, "00:", 3);