summaryrefslogtreecommitdiffstats
path: root/lib/route/rtnl.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-07-26 13:06:59 (GMT)
committerThomas Haller <thaller@redhat.com>2014-07-27 08:57:31 (GMT)
commitfc249f81c789c59ff7d82ca9c6ee2ef0ac05b6e4 (patch)
tree8c2d2350ce1c1b13dbf176c0149bd773b758a050 /lib/route/rtnl.c
parent9dc6e6da90016a33929f262bea0187396e1a061b (diff)
downloadlibnl-fc249f81c789c59ff7d82ca9c6ee2ef0ac05b6e4.zip
libnl-fc249f81c789c59ff7d82ca9c6ee2ef0ac05b6e4.tar.gz
libnl-fc249f81c789c59ff7d82ca9c6ee2ef0ac05b6e4.tar.bz2
style: require comma after __ADD() macro
$ sed -i 's/^\([\t ]\+\<__ADD\> \?([^)]\+)\) *$/\1,/' `git grep -w -l __ADD` Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'lib/route/rtnl.c')
-rw-r--r--lib/route/rtnl.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/route/rtnl.c b/lib/route/rtnl.c
index 6a55ca1..242e2a8 100644
--- a/lib/route/rtnl.c
+++ b/lib/route/rtnl.c
@@ -58,18 +58,18 @@ int nl_rtgen_request(struct nl_sock *sk, int type, int family, int flags)
*/
static const struct trans_tbl rtntypes[] = {
- __ADD(RTN_UNSPEC,unspec)
- __ADD(RTN_UNICAST,unicast)
- __ADD(RTN_LOCAL,local)
- __ADD(RTN_BROADCAST,broadcast)
- __ADD(RTN_ANYCAST,anycast)
- __ADD(RTN_MULTICAST,multicast)
- __ADD(RTN_BLACKHOLE,blackhole)
- __ADD(RTN_UNREACHABLE,unreachable)
- __ADD(RTN_PROHIBIT,prohibit)
- __ADD(RTN_THROW,throw)
- __ADD(RTN_NAT,nat)
- __ADD(RTN_XRESOLVE,xresolve)
+ __ADD(RTN_UNSPEC,unspec),
+ __ADD(RTN_UNICAST,unicast),
+ __ADD(RTN_LOCAL,local),
+ __ADD(RTN_BROADCAST,broadcast),
+ __ADD(RTN_ANYCAST,anycast),
+ __ADD(RTN_MULTICAST,multicast),
+ __ADD(RTN_BLACKHOLE,blackhole),
+ __ADD(RTN_UNREACHABLE,unreachable),
+ __ADD(RTN_PROHIBIT,prohibit),
+ __ADD(RTN_THROW,throw),
+ __ADD(RTN_NAT,nat),
+ __ADD(RTN_XRESOLVE,xresolve),
};
char *nl_rtntype2str(int type, char *buf, size_t size)
@@ -90,11 +90,11 @@ int nl_str2rtntype(const char *name)
*/
static const struct trans_tbl scopes[] = {
- __ADD(255,nowhere)
- __ADD(254,host)
- __ADD(253,link)
- __ADD(200,site)
- __ADD(0,global)
+ __ADD(255,nowhere),
+ __ADD(254,host),
+ __ADD(253,link),
+ __ADD(200,site),
+ __ADD(0,global),
};
char *rtnl_scope2str(int scope, char *buf, size_t size)