X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fboot-timestamps.c;h=54e0537a212b999f6ecee922aa863b080d31a38a;hp=944996582ee4ca6a410c35464e05a15399e28beb;hb=abe4aa144beb3a68e9f2c98a4563e0a99f28c7a1;hpb=c51d84dc09476d9c06b8aac726220bf3c7d62e8d diff --git a/src/shared/boot-timestamps.c b/src/shared/boot-timestamps.c index 944996582..54e0537a2 100644 --- a/src/shared/boot-timestamps.c +++ b/src/shared/boot-timestamps.c @@ -26,7 +26,7 @@ #include "efivars.h" int boot_timestamps(const dual_timestamp *n, dual_timestamp *firmware, dual_timestamp *loader) { - usec_t x, y, a; + usec_t x = 0, y = 0, a; int r; dual_timestamp _n; @@ -40,8 +40,10 @@ int boot_timestamps(const dual_timestamp *n, dual_timestamp *firmware, dual_time r = acpi_get_boot_usec(&x, &y); if (r < 0) { +#ifdef ENABLE_EFI r = efi_loader_get_boot_usec(&x, &y); if (r < 0) +#endif return r; }