summaryrefslogtreecommitdiff
path: root/src/nss-mymachines
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-06-19 14:09:13 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-06-19 08:44:55 +0200
commit31d99bd172b17179ec24f63fc8ca4d6530dc98ae (patch)
tree03042a5f12d475e3cbc2be570a50194aa6b40dac /src/nss-mymachines
parent496ab389cce80b436aa1e68fdb970363a8b093fb (diff)
downloadsystemd-31d99bd172b17179ec24f63fc8ca4d6530dc98ae.tar.gz
tree-wide: do not assign values if not used
Diffstat (limited to 'src/nss-mymachines')
-rw-r--r--src/nss-mymachines/nss-mymachines.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c
index 3bd8165a9f..8d6caa0ada 100644
--- a/src/nss-mymachines/nss-mymachines.c
+++ b/src/nss-mymachines/nss-mymachines.c
@@ -489,7 +489,7 @@ enum nss_status _nss_mymachines_getpwuid_r(
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
_cleanup_(sd_bus_message_unrefp) sd_bus_message* reply = NULL;
_cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;
- const char *machine, *object;
+ const char *machine;
uint32_t mapped;
int r;
@@ -525,7 +525,7 @@ enum nss_status _nss_mymachines_getpwuid_r(
goto fail;
}
- r = sd_bus_message_read(reply, "sou", &machine, &object, &mapped);
+ r = sd_bus_message_read(reply, "sou", &machine, NULL, &mapped);
if (r < 0)
goto fail;
@@ -663,7 +663,7 @@ enum nss_status _nss_mymachines_getgrgid_r(
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
_cleanup_(sd_bus_message_unrefp) sd_bus_message* reply = NULL;
_cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;
- const char *machine, *object;
+ const char *machine;
uint32_t mapped;
int r;
@@ -699,7 +699,7 @@ enum nss_status _nss_mymachines_getgrgid_r(
goto fail;
}
- r = sd_bus_message_read(reply, "sou", &machine, &object, &mapped);
+ r = sd_bus_message_read(reply, "sou", &machine, NULL, &mapped);
if (r < 0)
goto fail;