diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-15 16:35:52 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-15 16:35:52 +0000 |
commit | 9d8d1478c66cb217ab62b4324b9862434e18e896 (patch) | |
tree | 8320ad9a79a86ca5284e6717542f651547dd947e /sandbox/linux/suid/sandbox.c | |
parent | 07c9ebf42b347c591a02583b7e65bcd496be2fd4 (diff) | |
download | chromium_src-9d8d1478c66cb217ab62b4324b9862434e18e896.zip chromium_src-9d8d1478c66cb217ab62b4324b9862434e18e896.tar.gz chromium_src-9d8d1478c66cb217ab62b4324b9862434e18e896.tar.bz2 |
linux: change a type in the sandbox to fix a warning
int and long are the same size on the platforms we care about,
but gcc doesn't like comparing int against LONG_MAX.
Review URL: http://codereview.chromium.org/604056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39071 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/linux/suid/sandbox.c')
-rw-r--r-- | sandbox/linux/suid/sandbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/linux/suid/sandbox.c b/sandbox/linux/suid/sandbox.c index 04073d4..9ff55dc 100644 --- a/sandbox/linux/suid/sandbox.c +++ b/sandbox/linux/suid/sandbox.c @@ -323,7 +323,7 @@ int main(int argc, char **argv) { // because those files are owned by root. So we need another helper here. if (argc == 4 && (0 == strcmp(argv[1], kAdjustOOMScoreSwitch))) { char* endptr; - int score; + long score; pid_t pid = strtoul(argv[2], &endptr, 10); if (pid == ULONG_MAX || *endptr) return 1; |