diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-07-24 00:54:36 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-07-24 00:54:36 -0400 |
commit | f7adc39e3793114e989f0a830af966230cd2c83d (patch) | |
tree | e1e453c1e83d0a5d5a64457e71163e2e645769c6 /src/time | |
parent | a53de812d258a7b0be44ce5dfc96e0f8ce137817 (diff) | |
download | musl-f7adc39e3793114e989f0a830af966230cd2c83d.tar.gz musl-f7adc39e3793114e989f0a830af966230cd2c83d.tar.bz2 musl-f7adc39e3793114e989f0a830af966230cd2c83d.tar.xz musl-f7adc39e3793114e989f0a830af966230cd2c83d.zip |
const correctness on function pointer
Diffstat (limited to 'src/time')
-rw-r--r-- | src/time/clock_gettime.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |