Change type of kSUIDSandboxApiNumber to int
commit58ceb59e54fafb2cfda634d0966d1be056225515
authorricea <ricea@chromium.org>
Tue, 22 Sep 2015 02:50:59 +0000 (21 19:50 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 22 Sep 2015 02:51:51 +0000 (22 02:51 +0000)
tree3042d6efc583aea0f7a3b2b801ba3f031abf61bb
parent22241127fbbfd706cfb19c98d76d84b48a304a13
Change type of kSUIDSandboxApiNumber to int

kSUIDSandboxApiNumber is declared as long, but treated as int in C++
code. C code treats it as a long, apparently in order to be able to use
strtol.

Declare it and treat it consistently as an int.

TEST=sandbox_linux_unittests
BUG=505479

Review URL: https://codereview.chromium.org/1348933003

Cr-Commit-Position: refs/heads/master@{#350096}
sandbox/linux/suid/common/sandbox.h
sandbox/linux/suid/sandbox.c