X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fboot%2Fboot-loader.c;h=d44fdb3aef652f1a03cb8a9d0186ccb0a2509851;hp=bd563da226f1415ad5c7b310ea14b0571ed2cf01;hb=eb9da376d76b48585b3b63b4f91903b54f7abd36;hpb=7b4d7cc08283e5485dcfa49ffdf1915de1d5e81b diff --git a/src/boot/boot-loader.c b/src/boot/boot-loader.c index bd563da22..d44fdb3ae 100644 --- a/src/boot/boot-loader.c +++ b/src/boot/boot-loader.c @@ -104,6 +104,7 @@ int boot_loader_read_entries(struct boot_info *info) { } info->loader_entries_count++; } + return 0; } @@ -120,7 +121,7 @@ int boot_loader_find_active_entry(struct boot_info *info, const char *loader_act return -ENOMEM; for (i = 0; i < info->loader_entries_count; i++) { - if (strcmp(fn, info->loader_entries[i].path) == 0) { + if (streq(fn, info->loader_entries[i].path)) { info->loader_entry_active = i; break; }