chiark / gitweb /
clients: unify how we invoke getopt_long()
[elogind.git] / src / boot / boot-loader.c
index bd563da226f1415ad5c7b310ea14b0571ed2cf01..d44fdb3aef652f1a03cb8a9d0186ccb0a2509851 100644 (file)
@@ -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;
                 }