Explorar o código

const correctness on function pointer

Rich Felker %!s(int64=13) %!d(string=hai) anos
pai
achega
f7adc39e37
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/time/clock_gettime.c

+ 1 - 1
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)
 {