Skip to content

Commit 735da5f

Browse files
committed
[NFC][sanitizer] Add static to internal functions
1 parent 1dfc13c commit 735da5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9937,7 +9937,7 @@ INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
99379937
typedef int (*qsort_compar_f)(const void *, const void *);
99389938
static THREADLOCAL qsort_compar_f qsort_compar;
99399939
static THREADLOCAL SIZE_T qsort_size;
9940-
int wrapped_qsort_compar(const void *a, const void *b) {
9940+
static int wrapped_qsort_compar(const void *a, const void *b) {
99419941
COMMON_INTERCEPTOR_UNPOISON_PARAM(2);
99429942
COMMON_INTERCEPTOR_INITIALIZE_RANGE(a, qsort_size);
99439943
COMMON_INTERCEPTOR_INITIALIZE_RANGE(b, qsort_size);
@@ -9988,7 +9988,7 @@ INTERCEPTOR(void, qsort, void *base, SIZE_T nmemb, SIZE_T size,
99889988
typedef int (*qsort_r_compar_f)(const void *, const void *, void *);
99899989
static THREADLOCAL qsort_r_compar_f qsort_r_compar;
99909990
static THREADLOCAL SIZE_T qsort_r_size;
9991-
int wrapped_qsort_r_compar(const void *a, const void *b, void *arg) {
9991+
static int wrapped_qsort_r_compar(const void *a, const void *b, void *arg) {
99929992
COMMON_INTERCEPTOR_UNPOISON_PARAM(3);
99939993
COMMON_INTERCEPTOR_INITIALIZE_RANGE(a, qsort_r_size);
99949994
COMMON_INTERCEPTOR_INITIALIZE_RANGE(b, qsort_r_size);

0 commit comments

Comments
 (0)