diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2018-01-04 17:05:04 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2018-01-04 17:05:04 +0000 |
commit | f7bbb0461d44ca3cd84206675f9904a51abddd8e (patch) | |
tree | 28490f31772ea57c4dafa5c0a68b0dfd4e35b9f7 /compiler-rt/include | |
parent | 0d796e9a6ebf9b585f387033a9ef53a4a50b816a (diff) |
[scudo] s/unsigned long/size_t/ for __scudo_set_rss_limit
Summary:
`__scudo_set_rss_limit`'s `LimitMb` should really be a `size_t`. Update
accordingly the prototype. To avoid the `NOLINT` and conform with the other
Sanitizers, use the sanitizers types for the internal definition. This should
have no functional change.
Additionally, capitalize a variable name to follow the LLVM coding standards.
Reviewers: alekseyshl, flowerhack
Reviewed By: alekseyshl
Subscribers: #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D41704
Diffstat (limited to 'compiler-rt/include')
-rw-r--r-- | compiler-rt/include/sanitizer/scudo_interface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/include/sanitizer/scudo_interface.h b/compiler-rt/include/sanitizer/scudo_interface.h index ec7a9e4e150..25979fb23a7 100644 --- a/compiler-rt/include/sanitizer/scudo_interface.h +++ b/compiler-rt/include/sanitizer/scudo_interface.h @@ -26,7 +26,7 @@ extern "C" { // the hard limit (HardLimit=1) or the soft limit (HardLimit=0). The limit // can be removed by setting LimitMb to 0. This function's parameters should // be fully trusted to avoid security mishaps. - void __scudo_set_rss_limit(unsigned long LimitMb, int HardLimit); + void __scudo_set_rss_limit(size_t LimitMb, int HardLimit); #ifdef __cplusplus } // extern "C" #endif |