fix build with -Defi=false

This commit is contained in:
asavah
2018-11-16 21:51:47 +01:00
committed by Lennart Poettering
parent 14c4da2ffe
commit 6917857ed4
+12 -12
View File
@@ -834,18 +834,6 @@ int efi_loader_get_entries(char ***ret) {
return 0;
}
#endif
char *efi_tilt_backslashes(char *s) {
char *p;
for (p = s; *p; p++)
if (*p == '\\')
*p = '/';
return s;
}
int efi_loader_get_features(uint64_t *ret) {
_cleanup_free_ void *v = NULL;
size_t s;
@@ -895,3 +883,15 @@ int efi_loader_get_features(uint64_t *ret) {
memcpy(ret, v, sizeof(uint64_t));
return 0;
}
#endif
char *efi_tilt_backslashes(char *s) {
char *p;
for (p = s; *p; p++)
if (*p == '\\')
*p = '/';
return s;
}