summaryrefslogtreecommitdiff
path: root/include/sanitizer
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2018-01-04 17:05:04 +0000
committerKostya Kortchinsky <kostyak@google.com>2018-01-04 17:05:04 +0000
commit545f65f1a4918b3f7cab43fc0f7ada8c846e61e9 (patch)
treeeac9cc7374de1d45f1dbec32383144efe32cb1f7 /include/sanitizer
parent07f783fdb3c347e502a0bbf00407f1d7de8cf841 (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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@321803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/sanitizer')
-rw-r--r--include/sanitizer/scudo_interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sanitizer/scudo_interface.h b/include/sanitizer/scudo_interface.h
index ec7a9e4e1..25979fb23 100644
--- a/include/sanitizer/scudo_interface.h
+++ b/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