mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
networkctl: use varlink_flush_close_unrefp()
This commit is contained in:
parent
16f5baa247
commit
7742d03e8d
@ -93,7 +93,7 @@ JsonFormatFlags arg_json_format_flags = JSON_FORMAT_OFF;
|
||||
STATIC_DESTRUCTOR_REGISTER(arg_drop_in, freep);
|
||||
|
||||
static int varlink_connect_networkd(Varlink **ret_varlink) {
|
||||
_cleanup_(varlink_unrefp) Varlink *vl = NULL;
|
||||
_cleanup_(varlink_flush_close_unrefp) Varlink *vl = NULL;
|
||||
JsonVariant *reply;
|
||||
uint64_t id;
|
||||
int r;
|
||||
@ -2431,7 +2431,7 @@ static int link_status(int argc, char *argv[], void *userdata) {
|
||||
_cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;
|
||||
_cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL;
|
||||
_cleanup_(sd_hwdb_unrefp) sd_hwdb *hwdb = NULL;
|
||||
_cleanup_(varlink_unrefp) Varlink *vl = NULL;
|
||||
_cleanup_(varlink_flush_close_unrefp) Varlink *vl = NULL;
|
||||
_cleanup_(link_info_array_freep) LinkInfo *links = NULL;
|
||||
int r, c;
|
||||
|
||||
@ -2593,7 +2593,7 @@ static int dump_lldp_neighbors_json(JsonVariant *reply, char * const *patterns)
|
||||
}
|
||||
|
||||
static int link_lldp_status(int argc, char *argv[], void *userdata) {
|
||||
_cleanup_(varlink_unrefp) Varlink *vl = NULL;
|
||||
_cleanup_(varlink_flush_close_unrefp) Varlink *vl = NULL;
|
||||
_cleanup_(table_unrefp) Table *table = NULL;
|
||||
JsonVariant *reply;
|
||||
uint64_t all = 0;
|
||||
@ -2934,7 +2934,7 @@ static int verb_reconfigure(int argc, char *argv[], void *userdata) {
|
||||
}
|
||||
|
||||
static int verb_persistent_storage(int argc, char *argv[], void *userdata) {
|
||||
_cleanup_(varlink_unrefp) Varlink *vl = NULL;
|
||||
_cleanup_(varlink_flush_close_unrefp) Varlink *vl = NULL;
|
||||
bool ready;
|
||||
int r;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user