1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-30 14:55:26 +03:00

efi: compare by substraction

This commit is contained in:
Kay Sievers 2013-02-17 19:54:29 +01:00
parent ddb5bee15a
commit 02a6fc3ea6

View File

@ -308,12 +308,7 @@ static int boot_id_hex(const char s[4]) {
static int cmp_uint16(const void *_a, const void *_b) {
const uint16_t *a = _a, *b = _b;
if (*a < *b)
return -1;
if (*a > *b)
return 1;
return 0;
return (int)*a - (int)*b;
}
int efi_get_boot_options(uint16_t **options) {