summaryrefslogtreecommitdiff
path: root/ripd
diff options
context:
space:
mode:
Diffstat (limited to 'ripd')
-rw-r--r--ripd/rip_interface.c8
-rw-r--r--ripd/rip_interface.h2
-rw-r--r--ripd/rip_main.c3
-rw-r--r--ripd/rip_offset.c2
-rw-r--r--ripd/rip_peer.c2
-rw-r--r--ripd/rip_snmp.c3
-rw-r--r--ripd/ripd.c10
-rw-r--r--ripd/ripd.h6
-rw-r--r--ripd/subdir.am2
9 files changed, 20 insertions, 18 deletions
diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c
index 89e7e5dc17..1ef64ff0de 100644
--- a/ripd/rip_interface.c
+++ b/ripd/rip_interface.c
@@ -43,10 +43,10 @@
#include "ripd/rip_debug.h"
#include "ripd/rip_interface.h"
-DEFINE_MTYPE_STATIC(RIPD, RIP_INTERFACE, "RIP interface")
-DEFINE_MTYPE(RIPD, RIP_INTERFACE_STRING, "RIP Interface String")
-DEFINE_HOOK(rip_ifaddr_add, (struct connected * ifc), (ifc))
-DEFINE_HOOK(rip_ifaddr_del, (struct connected * ifc), (ifc))
+DEFINE_MTYPE_STATIC(RIPD, RIP_INTERFACE, "RIP interface");
+DEFINE_MTYPE(RIPD, RIP_INTERFACE_STRING, "RIP Interface String");
+DEFINE_HOOK(rip_ifaddr_add, (struct connected * ifc), (ifc));
+DEFINE_HOOK(rip_ifaddr_del, (struct connected * ifc), (ifc));
/* static prototypes */
static void rip_enable_apply(struct interface *);
diff --git a/ripd/rip_interface.h b/ripd/rip_interface.h
index 715daf2e50..fe26a78bdc 100644
--- a/ripd/rip_interface.h
+++ b/ripd/rip_interface.h
@@ -23,7 +23,7 @@
#include "memory.h"
#include "zclient.h"
-DECLARE_MTYPE(RIP_INTERFACE_STRING)
+DECLARE_MTYPE(RIP_INTERFACE_STRING);
extern int rip_interface_down(int, struct zclient *, zebra_size_t, vrf_id_t);
extern int rip_interface_up(int, struct zclient *, zebra_size_t, vrf_id_t);
diff --git a/ripd/rip_main.c b/ripd/rip_main.c
index 7e381887fc..2e5eec9844 100644
--- a/ripd/rip_main.c
+++ b/ripd/rip_main.c
@@ -128,7 +128,8 @@ FRR_DAEMON_INFO(ripd, RIP, .vty_port = RIP_VTY_PORT,
.signals = ripd_signals, .n_signals = array_size(ripd_signals),
.privs = &ripd_privs, .yang_modules = ripd_yang_modules,
- .n_yang_modules = array_size(ripd_yang_modules), )
+ .n_yang_modules = array_size(ripd_yang_modules),
+);
#define DEPRECATED_OPTIONS ""
diff --git a/ripd/rip_offset.c b/ripd/rip_offset.c
index 776f121d59..4034fe8424 100644
--- a/ripd/rip_offset.c
+++ b/ripd/rip_offset.c
@@ -29,7 +29,7 @@
#include "ripd/ripd.h"
-DEFINE_MTYPE_STATIC(RIPD, RIP_OFFSET_LIST, "RIP offset list")
+DEFINE_MTYPE_STATIC(RIPD, RIP_OFFSET_LIST, "RIP offset list");
#define OFFSET_LIST_IN_NAME(O) ((O)->direct[RIP_OFFSET_LIST_IN].alist_name)
#define OFFSET_LIST_IN_METRIC(O) ((O)->direct[RIP_OFFSET_LIST_IN].metric)
diff --git a/ripd/rip_peer.c b/ripd/rip_peer.c
index 23599f0877..63493e2539 100644
--- a/ripd/rip_peer.c
+++ b/ripd/rip_peer.c
@@ -29,7 +29,7 @@
#include "ripd/ripd.h"
-DEFINE_MTYPE_STATIC(RIPD, RIP_PEER, "RIP peer")
+DEFINE_MTYPE_STATIC(RIPD, RIP_PEER, "RIP peer");
static struct rip_peer *rip_peer_new(void)
{
diff --git a/ripd/rip_snmp.c b/ripd/rip_snmp.c
index 4e6ed1400f..37bce7484c 100644
--- a/ripd/rip_snmp.c
+++ b/ripd/rip_snmp.c
@@ -589,4 +589,5 @@ static int rip_snmp_module_init(void)
FRR_MODULE_SETUP(.name = "ripd_snmp", .version = FRR_VERSION,
.description = "ripd AgentX SNMP module",
- .init = rip_snmp_module_init, )
+ .init = rip_snmp_module_init,
+);
diff --git a/ripd/ripd.c b/ripd/ripd.c
index 4a56efb6f8..1c23575bf3 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -56,11 +56,11 @@
/* UDP receive buffer size */
#define RIP_UDP_RCV_BUF 41600
-DEFINE_MGROUP(RIPD, "ripd")
-DEFINE_MTYPE_STATIC(RIPD, RIP, "RIP structure")
-DEFINE_MTYPE_STATIC(RIPD, RIP_VRF_NAME, "RIP VRF name")
-DEFINE_MTYPE_STATIC(RIPD, RIP_INFO, "RIP route info")
-DEFINE_MTYPE_STATIC(RIPD, RIP_DISTANCE, "RIP distance")
+DEFINE_MGROUP(RIPD, "ripd");
+DEFINE_MTYPE_STATIC(RIPD, RIP, "RIP structure");
+DEFINE_MTYPE_STATIC(RIPD, RIP_VRF_NAME, "RIP VRF name");
+DEFINE_MTYPE_STATIC(RIPD, RIP_INFO, "RIP route info");
+DEFINE_MTYPE_STATIC(RIPD, RIP_DISTANCE, "RIP distance");
/* Prototypes. */
static void rip_output_process(struct connected *, struct sockaddr_in *, int,
diff --git a/ripd/ripd.h b/ripd/ripd.h
index 99718f7b9e..85aac985f5 100644
--- a/ripd/ripd.h
+++ b/ripd/ripd.h
@@ -97,7 +97,7 @@
#define RIP_INSTANCE "/frr-ripd:ripd/instance"
#define RIP_IFACE "/frr-interface:lib/interface/frr-ripd:rip"
-DECLARE_MGROUP(RIPD)
+DECLARE_MGROUP(RIPD);
/* RIP structure. */
struct rip {
@@ -529,7 +529,7 @@ extern struct rip_instance_head rip_instances;
/* Master thread strucutre. */
extern struct thread_master *master;
-DECLARE_HOOK(rip_ifaddr_add, (struct connected * ifc), (ifc))
-DECLARE_HOOK(rip_ifaddr_del, (struct connected * ifc), (ifc))
+DECLARE_HOOK(rip_ifaddr_add, (struct connected * ifc), (ifc));
+DECLARE_HOOK(rip_ifaddr_del, (struct connected * ifc), (ifc));
#endif /* _ZEBRA_RIP_H */
diff --git a/ripd/subdir.am b/ripd/subdir.am
index 875239e871..09d5590329 100644
--- a/ripd/subdir.am
+++ b/ripd/subdir.am
@@ -57,6 +57,6 @@ nodist_ripd_ripd_SOURCES = \
# end
ripd_ripd_snmp_la_SOURCES = ripd/rip_snmp.c
-ripd_ripd_snmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS) -std=gnu99
+ripd_ripd_snmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS) -std=gnu11
ripd_ripd_snmp_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
ripd_ripd_snmp_la_LIBADD = lib/libfrrsnmp.la