const correctness on function pointer
authorRich Felker <dalias@aerifal.cx>
Sun, 24 Jul 2011 04:54:36 +0000 (00:54 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 24 Jul 2011 04:54:36 +0000 (00:54 -0400)
src/time/clock_gettime.c

index c27c9e9..bb977e2 100644 (file)
@@ -5,7 +5,7 @@
 #include "libc.h"
 
 int __vdso_clock_gettime(clockid_t, struct timespec *) __attribute__((weak));
 #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)
 {
 
 int __clock_gettime(clockid_t clk, struct timespec *ts)
 {