commit | a48dc55f326937d29a791e4016f980c589612333 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Dec 16 18:12:39 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Dec 16 18:12:39 2015 +0000 |
tree | 703eda2de8bb94d805c36a261c810989694e8ee2 | |
parent | 57134adecbcbc988922295c466e174c04251b53a [diff] | |
parent | 9e7893bf86a18b8a3f709d32811f56ccc2df3449 [diff] |
Merge "More idiomatic cleanup of 9f75a035713d216469f1cabfe4a65f7864e2145a."
diff --git a/adb/daemon/main.cpp b/adb/daemon/main.cpp index 218c1d0..240985f 100644 --- a/adb/daemon/main.cpp +++ b/adb/daemon/main.cpp
@@ -53,8 +53,7 @@ continue; } - int err = prctl(PR_CAPBSET_DROP, i, 0, 0, 0); - if (err < 0) { + if (prctl(PR_CAPBSET_DROP, i, 0, 0, 0) == -1) { PLOG(FATAL) << "Could not drop capabilities"; } }