projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9451078
)
machine: drop an unused variable
author
Frantisek Sumsal
<frantisek@sumsal.cz>
Sat, 20 Aug 2022 18:45:27 +0000
(20:45 +0200)
committer
Frantisek Sumsal
<frantisek@sumsal.cz>
Sat, 20 Aug 2022 18:47:48 +0000
(20:47 +0200)
src/machine/machine-dbus.c
patch
|
blob
|
history
diff --git
a/src/machine/machine-dbus.c
b/src/machine/machine-dbus.c
index 7a07d20e0b3f3f2c58c65e6e1eb4abde61f4e325..bd203b37dd291c058159be27d04978341615f15c 100644
(file)
--- a/
src/machine/machine-dbus.c
+++ b/
src/machine/machine-dbus.c
@@
-206,15
+206,13
@@
int bus_machine_method_get_addresses(sd_bus_message *message, void *userdata, sd
case MACHINE_HOST: {
_cleanup_free_ struct local_address *addresses = NULL;
- struct local_address *a;
- int n, i;
+ int n;
n = local_addresses(NULL, 0, AF_UNSPEC, &addresses);
if (n < 0)
return n;
- for (a = addresses, i = 0; i < n; a++, i++) {
-
+ for (int i = 0; i < n; i++) {
r = sd_bus_message_open_container(reply, 'r', "iay");
if (r < 0)
return r;