From: Lennart Poettering Date: Mon, 4 Aug 2014 17:05:06 +0000 (+0200) Subject: machined: fix address API signatures X-Git-Tag: v216~263 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=3a6fb33c54bc64398e0af1c9d7c74a6b614a849d machined: fix address API signatures --- diff --git a/src/machine/machined-dbus.c b/src/machine/machined-dbus.c index 1b9449a2b..3c7d4be8d 100644 --- a/src/machine/machined-dbus.c +++ b/src/machine/machined-dbus.c @@ -447,7 +447,7 @@ const sd_bus_vtable manager_vtable[] = { SD_BUS_METHOD("RegisterMachineWithNetwork", "sayssusai", "o", method_register_machine_with_network, 0), SD_BUS_METHOD("KillMachine", "ssi", NULL, method_kill_machine, SD_BUS_VTABLE_CAPABILITY(CAP_KILL)), SD_BUS_METHOD("TerminateMachine", "s", NULL, method_terminate_machine, SD_BUS_VTABLE_CAPABILITY(CAP_KILL)), - SD_BUS_METHOD("GetMachineAddresses", "s", "a(yay)", method_get_machine_addresses, SD_BUS_VTABLE_UNPRIVILEGED), + SD_BUS_METHOD("GetMachineAddresses", "s", "a(iay)", method_get_machine_addresses, SD_BUS_VTABLE_UNPRIVILEGED), SD_BUS_METHOD("GetMachineOSRelease", "s", "a{ss}", method_get_machine_os_release, SD_BUS_VTABLE_UNPRIVILEGED), SD_BUS_SIGNAL("MachineNew", "so", 0), SD_BUS_SIGNAL("MachineRemoved", "so", 0), diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c index c87f436ae..abeb8253c 100644 --- a/src/nss-mymachines/nss-mymachines.c +++ b/src/nss-mymachines/nss-mymachines.c @@ -39,7 +39,7 @@ static int count_addresses(sd_bus_message *m, int af, unsigned *ret) { assert(m); assert(ret); - while ((r = sd_bus_message_enter_container(m, 'r', "yay")) > 0) { + while ((r = sd_bus_message_enter_container(m, 'r', "iay")) > 0) { int family; r = sd_bus_message_read(m, "i", &family);