summaryrefslogtreecommitdiff
path: root/libpackagelistparser/packagelistparser.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-08-12 12:43:34 -0700
committerElliott Hughes <enh@google.com>2019-08-12 12:43:34 -0700
commit38b6297bac6cb3aaa9503c125ec4f4989d9d997d (patch)
tree326a8fa046f2dba7d64b96ebf84eb3eec82ed76c /libpackagelistparser/packagelistparser.cpp
parent8c711a5384eb9aa620ede7e953fa5caa7d72d97d (diff)
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
Diffstat (limited to 'libpackagelistparser/packagelistparser.cpp')
-rw-r--r--libpackagelistparser/packagelistparser.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/libpackagelistparser/packagelistparser.cpp b/libpackagelistparser/packagelistparser.cpp
index ddf558b5b..59c3a7491 100644
--- a/libpackagelistparser/packagelistparser.cpp
+++ b/libpackagelistparser/packagelistparser.cpp
@@ -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;