summaryrefslogtreecommitdiff
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2023-12-13 18:07:38 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2023-12-13 18:07:38 +0100
commit2b6bd8ca3a3955a407b0553009b05572693cfdf7 (patch)
treeb0d971ae14aca1b7d77edf04b00a40351c4f5312 /proto/ospf
parent7d2c7d59a363e690995eb958959f0bc12445355c (diff)
OSPF: Cleanup some warnings
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/lsalib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/lsalib.h b/proto/ospf/lsalib.h
index eca138d7..77e52ce8 100644
--- a/proto/ospf/lsalib.h
+++ b/proto/ospf/lsalib.h
@@ -16,8 +16,8 @@ static inline void lsa_hton_hdr(struct ospf_lsa_header *h, struct ospf_lsa_heade
static inline void lsa_ntoh_hdr(struct ospf_lsa_header *n, struct ospf_lsa_header *h) { *h = *n; };
static inline void lsa_hton_body(void *h, void *n, u16 len) { ASSERT(h != n); memcpy(n, h, len); };
static inline void lsa_ntoh_body(void *n, void *h, u16 len) { ASSERT(n != h); memcpy(h, n, len); };
-static inline void lsa_hton_body1(void *h, u16 len) { };
-static inline void lsa_ntoh_body1(void *n, u16 len) { };
+static inline void lsa_hton_body1(void *h UNUSED, u16 len UNUSED) { };
+static inline void lsa_ntoh_body1(void *n UNUSED, u16 len UNUSED) { };
#else
void lsa_hton_hdr(struct ospf_lsa_header *h, struct ospf_lsa_header *n);
void lsa_ntoh_hdr(struct ospf_lsa_header *n, struct ospf_lsa_header *h);