libpackageparser: C rules for bools.

I don't see any reason to carry around code to be more fussy than we
need to be.

Test: treehugger
Change-Id: I548f76fc4e06fadefb9173827872fd7f39f300fd
This commit is contained in:
Elliott Hughes 2019-08-12 12:43:34 -07:00
parent 8c711a5384
commit 38b6297bac

View file

@ -92,10 +92,7 @@ static bool parse_line(const char* path, size_t line_number, const char* line, p
info->uid = uid;
// Integer to bool conversions.
if (debuggable != 0 && debuggable != 1) return false;
info->debuggable = debuggable;
if (profileable_from_shell != 0 && profileable_from_shell != 1) return false;
info->profileable_from_shell = profileable_from_shell;
return true;