core: rework machine-id-setup.c to use the calls from id128-util.[ch]

This allows us to delete quite a bit of code and make the whole thing a lot
shorter.
This commit is contained in:
Lennart Poettering
2016-07-22 12:59:36 +02:00
parent 9ca8d43479
commit 4b1afed01f
4 changed files with 50 additions and 155 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ int main(int argc, char *argv[]) {
if (arg_commit)
r = machine_id_commit(arg_root);
else
r = machine_id_setup(arg_root, SD_ID128_NULL);
r = machine_id_setup(arg_root, SD_ID128_NULL, NULL);
finish:
free(arg_root);