use bitclear instead of seperating them and fix some typo

Signed-off-by: kevinetc123 <kaiwentan@harmonycloud.cn>
This commit is contained in:
kevinetc123 2017-02-09 17:30:21 +08:00
parent 42a17f9391
commit 6425680d94
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ func parseMountOptions(options []string) (int, string) {
// then it is a data value for a specific fs type
if f, exists := flags[o]; exists && f.flag != 0 {
if f.clear {
flag &= ^f.flag
flag &^= f.flag
} else {
flag |= f.flag
}

View File

@ -26,7 +26,7 @@ const prSetChildSubreaper = 36
// PR_GET_CHILD_SUBREAPER allows retrieving the current child
// subreaper.
// Return the "child subreaper" setting of the caller, in the
// Returns the "child subreaper" setting of the caller, in the
// location pointed to by (int *) arg2.
const prGetChildSubreaper = 37