diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-07-30 12:56:51 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-09 09:34:54 +0200 |
commit | 0ef14adc1c724eee8d5f4db3d298786b209afaa5 (patch) | |
tree | b3ea62774a5ae0ee69b285f8def952197427178f /src/systemd | |
parent | aa3b40c3f98f28312967b3f9ba1f353efd9c9873 (diff) | |
download | systemd-0ef14adc1c724eee8d5f4db3d298786b209afaa5.tar.gz |
Rewrite sd_machine_get_ifindices() to avoid FOREACH_WORD()
If we fail to parse the index, the failure is propogated as -EUNCLEAN.
(-EINVAL would be confused with invalid args to the function itself.)
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/sd-login.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemd/sd-login.h b/src/systemd/sd-login.h index 360f44d341..6a8c206259 100644 --- a/src/systemd/sd-login.h +++ b/src/systemd/sd-login.h @@ -199,7 +199,7 @@ int sd_seat_can_graphical(const char *seat); int sd_machine_get_class(const char *machine, char **clazz); /* Return the list if host-side network interface indices of a machine */ -int sd_machine_get_ifindices(const char *machine, int **ifindices); +int sd_machine_get_ifindices(const char *machine, int **ret_ifindices); /* Get all seats, store in *seats. Returns the number of seats. If * seats is NULL, this only returns the number of seats. */ |