core: Use extract_first_word in config_parse_cpu_affinity2
authorFilipe Brandenburger <filbranden@google.com>
Mon, 31 Aug 2015 03:22:37 +0000 (20:22 -0700)
committerFilipe Brandenburger <filbranden@google.com>
Tue, 1 Sep 2015 00:15:56 +0000 (17:15 -0700)
commit4457c2279e032832bccd6ec0895105e3d6e192cc
treeca92440337a29e2e9b4d2bfa092f33a226e9c015
parentd4c8dcc47aab8da904b6998c53c457d3d9a7b227
core: Use extract_first_word in config_parse_cpu_affinity2

Related to the TODO item to replace FOREACH_WORD_QUOTED with it.

Tested by setting `CPUAfinity=0 1' (and other similar settings) in
/etc/systemd/system.conf, booting the system with the patched binaries
(and also using `systemctl daemon-reload` to reconfigure) and checking
that /proc/1/status indicates only CPUs 0 and 1 are allowed for PID 1.

No regressions observed in test cases.
src/core/main.c