mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Minor cleanups
This commit is contained in:
parent
7fb23041a5
commit
f8276812e6
@ -589,7 +589,7 @@ f_linearize_concat(const struct f_inst * const inst[], uint count, uint results)
|
||||
for (uint i=0; i<count; i++)
|
||||
out->len = linearize(out, inst[i], out->len);
|
||||
|
||||
out->results = results;
|
||||
out->results = results;
|
||||
|
||||
#ifdef LOCAL_DEBUG
|
||||
f_dump_line(out, 0);
|
||||
|
@ -113,13 +113,13 @@ mrt_buffer_flush(buffer *b)
|
||||
}
|
||||
|
||||
#define MRT_DEFINE_TYPE(S, T) \
|
||||
static inline void mrt_put_##S##_(buffer *b, T x) \
|
||||
static inline void UNUSED mrt_put_##S##_(buffer *b, T x) \
|
||||
{ \
|
||||
put_##S(b->pos, x); \
|
||||
b->pos += sizeof(T); \
|
||||
} \
|
||||
\
|
||||
static inline void mrt_put_##S(buffer *b, T x) \
|
||||
static inline void UNUSED mrt_put_##S(buffer *b, T x) \
|
||||
{ \
|
||||
mrt_buffer_need(b, sizeof(T)); \
|
||||
put_##S(b->pos, x); \
|
||||
|
@ -206,7 +206,7 @@ struct ks_msg
|
||||
memcpy(p, body, (l > sizeof(*p) ? sizeof(*p) : l));\
|
||||
body += l;}
|
||||
|
||||
static inline void
|
||||
static inline void UNUSED
|
||||
sockaddr_fill_dl(struct sockaddr_dl *sa, struct iface *ifa)
|
||||
{
|
||||
uint len = OFFSETOF(struct sockaddr_dl, sdl_data);
|
||||
|
Loading…
Reference in New Issue
Block a user