chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nspawn: require /etc/os-release only for init
[elogind.git]
/
src
/
boot
/
boot-loader.c
diff --git
a/src/boot/boot-loader.c
b/src/boot/boot-loader.c
index bd563da226f1415ad5c7b310ea14b0571ed2cf01..d44fdb3aef652f1a03cb8a9d0186ccb0a2509851 100644
(file)
--- 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++;
}
}
info->loader_entries_count++;
}
+
return 0;
}
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++) {
return -ENOMEM;
for (i = 0; i < info->loader_entries_count; i++) {
- if (str
cmp(fn, info->loader_entries[i].path) == 0
) {
+ if (str
eq(fn, info->loader_entries[i].path)
) {
info->loader_entry_active = i;
break;
}
info->loader_entry_active = i;
break;
}