mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
tree-wide: use sd_bus_message_send() instead of sd_bus_send() wherever possible
Also, add a coccinelle script that patches this automatically.
This commit is contained in:
committed by
Yu Watanabe
parent
9422ce83c2
commit
51cc3825d1
6
coccinelle/bus-message-send.cocci
Normal file
6
coccinelle/bus-message-send.cocci
Normal file
@@ -0,0 +1,6 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
@@
|
||||
expression m;
|
||||
@@
|
||||
- sd_bus_send(NULL, m, NULL)
|
||||
+ sd_bus_message_send(m)
|
||||
Reference in New Issue
Block a user