chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
machine: make sure unpriviliged "machinectl status" can show the machine's OS version
[elogind.git]
/
src
/
machine
/
machine.c
diff --git
a/src/machine/machine.c
b/src/machine/machine.c
index 0ed18d74ece89a8c0680e6f70b73a79ba0c74728..1c9177e1c379b9a60ad2a7424b42bf2b8af8b4a6 100644
(file)
--- a/
src/machine/machine.c
+++ b/
src/machine/machine.c
@@
-291,14
+291,14
@@
int machine_load(Machine *m) {
if (netif) {
size_t l, allocated = 0, nr = 0;
if (netif) {
size_t l, allocated = 0, nr = 0;
- c
har *w
, *state;
+ c
onst char *word
, *state;
int *ni = NULL;
int *ni = NULL;
- FOREACH_WORD(w, l, netif, state) {
+ FOREACH_WORD(w
ord
, l, netif, state) {
char buf[l+1];
int ifi;
char buf[l+1];
int ifi;
- *(char*) (mempcpy(buf, w, l)) = 0;
+ *(char*) (mempcpy(buf, w
ord
, l)) = 0;
if (safe_atoi(buf, &ifi) < 0)
continue;
if (safe_atoi(buf, &ifi) < 0)
continue;