time: Correct the *settime* parameters
[deliverable/linux.git] / kernel / posix-timers.c
index 93bd2eb2bc53efe76dd120501b0cbda115b71bfd..21b7ca205f38231992e23c81145c75586b98013e 100644 (file)
@@ -192,7 +192,7 @@ static int common_clock_get(clockid_t which_clock, struct timespec *tp)
 }
 
 static inline int common_clock_set(const clockid_t which_clock,
-                                  struct timespec *tp)
+                                  const struct timespec *tp)
 {
        return do_sys_settimeofday(tp, NULL);
 }
@@ -928,7 +928,7 @@ void exit_itimers(struct signal_struct *sig)
 }
 
 /* Not available / possible... functions */
-int do_posix_clock_nosettime(const clockid_t clockid, struct timespec *tp)
+int do_posix_clock_nosettime(const clockid_t clockid, const struct timespec *tp)
 {
        return -EINVAL;
 }
This page took 0.041564 seconds and 5 git commands to generate.