提交 f7adc39e 编写于 作者: R Rich Felker

const correctness on function pointer

上级 a53de812
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册