summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-01-11 14:02:36 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-01-17 14:08:32 +0100
commit408ed95ed22cf53d7af3e62ed2b2382eb442bef7 (patch)
treebb8e15dafa5db607f164369d3c9cc1e9a84e4532
parent032a741219aac787882e039bd3bdc22adeceea5c (diff)
pimd: remove pim_addr_copy
This is not needed, pim_addr can just be assigned as a whole. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r--pimd/pim_str.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/pimd/pim_str.h b/pimd/pim_str.h
index 475523ec0c..be8b6a9f4f 100644
--- a/pimd/pim_str.h
+++ b/pimd/pim_str.h
@@ -39,11 +39,6 @@
#define PIM_SG_LEN PREFIX_SG_STR_LEN
#define pim_inet4_dump prefix_mcast_inet4_dump
-static inline void pim_addr_copy(pim_addr *dest, pim_addr *source)
-{
- dest->s_addr = source->s_addr;
-}
-
void pim_addr_dump(const char *onfail, struct prefix *p, char *buf,
int buf_size);
void pim_inet4_dump(const char *onfail, struct in_addr addr, char *buf,