Searched refs:n_routes (Results 1 – 1 of 1) sorted by relevance
218 static int dhcp_lease_get_routes(sd_dhcp_route *routes, size_t n_routes, sd_dhcp_route ***ret) { in dhcp_lease_get_routes() argument219 assert(routes || n_routes == 0); in dhcp_lease_get_routes()221 if (n_routes <= 0) in dhcp_lease_get_routes()227 buf = new(sd_dhcp_route*, n_routes); in dhcp_lease_get_routes()231 for (size_t i = 0; i < n_routes; i++) in dhcp_lease_get_routes()237 return (int) n_routes; in dhcp_lease_get_routes()