chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
networkd: link - drop assert from _free()
[elogind.git]
/
src
/
network
/
networkd-route.c
diff --git
a/src/network/networkd-route.c
b/src/network/networkd-route.c
index 0cb7239ca04182945015d28aa4192383529e697a..d0a04ecfeebcd3388469cda35e22e083101c7b5d 100644
(file)
--- a/
src/network/networkd-route.c
+++ b/
src/network/networkd-route.c
@@
-26,7
+26,7
@@
#include "utf8.h"
#include "util.h"
#include "conf-parser.h"
#include "utf8.h"
#include "util.h"
#include "conf-parser.h"
-#include "net
-uti
l.h"
+#include "net
work-interna
l.h"
int route_new_static(Network *network, unsigned section, Route **ret) {
_cleanup_route_free_ Route *route = NULL;
int route_new_static(Network *network, unsigned section, Route **ret) {
_cleanup_route_free_ Route *route = NULL;
@@
-52,7
+52,7
@@
int route_new_static(Network *network, unsigned section, Route **ret) {
route->network = network;
route->network = network;
- LIST_PREPEND(
static_
routes, network->static_routes, route);
+ LIST_PREPEND(routes, network->static_routes, route);
if (section) {
route->section = section;
if (section) {
route->section = section;
@@
-86,7
+86,7
@@
void route_free(Route *route) {
return;
if (route->network) {
return;
if (route->network) {
- LIST_REMOVE(
static_
routes, route->network->static_routes, route);
+ LIST_REMOVE(routes, route->network->static_routes, route);
if (route->section)
hashmap_remove(route->network->routes_by_section,
if (route->section)
hashmap_remove(route->network->routes_by_section,