From 1f01fb4f29bbe6aff952331a538fb3cc7f52dab4 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sat, 7 Dec 2013 21:18:44 +0100 Subject: rtnl: simplify route_new() Drop most of the arguments and instead introduce set_dst_prefixlen(). --- src/libsystemd-rtnl/test-rtnl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/libsystemd-rtnl/test-rtnl.c') diff --git a/src/libsystemd-rtnl/test-rtnl.c b/src/libsystemd-rtnl/test-rtnl.c index 409a0fa7b2..bfcfc85d93 100644 --- a/src/libsystemd-rtnl/test-rtnl.c +++ b/src/libsystemd-rtnl/test-rtnl.c @@ -65,9 +65,7 @@ static void test_route(void) { void *data; int r; - r = sd_rtnl_message_route_new(RTM_NEWROUTE, AF_INET, 0, 0, 0, - RT_TABLE_MAIN, RT_SCOPE_UNIVERSE, RTPROT_BOOT, - RTN_UNICAST, 0, &req); + r = sd_rtnl_message_route_new(RTM_NEWROUTE, AF_INET, &req); if (r < 0) { log_error("Could not create RTM_NEWROUTE message: %s", strerror(-r)); return; -- cgit v1.2.3-54-g00ecf