]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
firewall-util: emphasize that nfnl_netlink_sendv() takes at least one message 23124/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Apr 2022 17:27:14 +0000 (02:27 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Apr 2022 17:28:54 +0000 (02:28 +0900)
Addresses https://github.com/systemd/systemd/pull/23090#discussion_r853002631.

src/shared/firewall-util-nft.c

index 197083487853c2db1945d6c55dbf1f63372f668b..2f98e791c21cdc7e75e6f2fcd1c028664d60362a 100644 (file)
@@ -31,7 +31,7 @@
 
 static int nfnl_netlink_sendv(
                 sd_netlink *nfnl,
-                sd_netlink_message **messages,
+                sd_netlink_message *messages[static 1],
                 size_t msgcount) {
 
         _cleanup_free_ uint32_t *serial = NULL;