]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/efivars.c
shared: efivars - is_efi_*() returns bool instead of int
authorTom Gundersen <teg@jklm.no>
Fri, 10 Apr 2015 17:43:36 +0000 (19:43 +0200)
committerTom Gundersen <teg@jklm.no>
Fri, 10 Apr 2015 17:55:49 +0000 (19:55 +0200)
commit9df49b33583e8a7d0a252bc5bd532fd2448ef0c8
tree14fe7e0ef08fc1e97f8d029400d2560b4f8b57b7
parent3dc055541c570e93c817e42f451f7d3519629cbc
shared: efivars - is_efi_*() returns bool instead of int

There was a bug where is_efi_*() could return a negative error value, which would be treated as 'true',
just make this a bool in the helper library to avoid the problem.
src/shared/efivars.c
src/shared/efivars.h