From: Rich Felker Date: Sun, 24 Jul 2011 04:54:36 +0000 (-0400) Subject: const correctness on function pointer X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=f7adc39e3793114e989f0a830af966230cd2c83d const correctness on function pointer --- diff --git a/src/time/clock_gettime.c b/src/time/clock_gettime.c index c27c9e9e..bb977e28 100644 --- a/src/time/clock_gettime.c +++ b/src/time/clock_gettime.c @@ -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) {