X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fmachine%2Fmachine.c;h=1c9177e1c379b9a60ad2a7424b42bf2b8af8b4a6;hp=0ed18d74ece89a8c0680e6f70b73a79ba0c74728;hb=e70bc43cdf75b36e7ad3d29e9a6f8ee1461e7d5e;hpb=9b5ed6feda08290edce3bf916fa7362733dd30ea diff --git a/src/machine/machine.c b/src/machine/machine.c index 0ed18d74e..1c9177e1c 100644 --- 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; - char *w, *state; + const char *word, *state; int *ni = NULL; - FOREACH_WORD(w, l, netif, state) { + FOREACH_WORD(word, l, netif, state) { char buf[l+1]; int ifi; - *(char*) (mempcpy(buf, w, l)) = 0; + *(char*) (mempcpy(buf, word, l)) = 0; if (safe_atoi(buf, &ifi) < 0) continue;