mirror of
https://github.com/fluencelabs/musl
synced 2025-06-12 22:41:37 +00:00
const correctness on function pointer
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
#include "libc.h"
|
||||
|
||||
int __vdso_clock_gettime(clockid_t, struct timespec *) __attribute__((weak));
|
||||
static int (*cgt)(clockid_t, struct timespec *) = __vdso_clock_gettime;
|
||||
static int (*const cgt)(clockid_t, struct timespec *) = __vdso_clock_gettime;
|
||||
|
||||
int __clock_gettime(clockid_t clk, struct timespec *ts)
|
||||
{
|
||||
|
Reference in New Issue
Block a user