]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: route: use typesafe function
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 29 Nov 2021 10:38:03 +0000 (19:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 30 Nov 2021 18:52:11 +0000 (03:52 +0900)
src/network/networkd-route.c

index 623b962c23200d40820011050be04a2324301c25..23716342826713bb05ba061813b5f900891b45ed 100644 (file)
@@ -673,7 +673,7 @@ static int route_set_netlink_message(const Route *route, sd_netlink_message *req
                         return log_link_error_errno(link, r, "Could not set route table: %m");
 
                 /* Table attribute to allow more than 256. */
-                r = sd_netlink_message_append_data(req, RTA_TABLE, &route->table, sizeof(route->table));
+                r = sd_netlink_message_append_u32(req, RTA_TABLE, route->table);
                 if (r < 0)
                         return log_link_error_errno(link, r, "Could not append RTA_TABLE attribute: %m");
         }