time: Correct the *settime* parameters
Both settimeofday() and clock_settime() promise with a 'const' attribute not to alter the arguments passed in. This patch adds the missing 'const' attribute into the various kernel functions implementing these calls. Signed-off-by: Richard Cochran <richard.cochran@omicron.at> Acked-by: John Stultz <johnstul@us.ibm.com> LKML-Reference: <20110201134417.545698637@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
committed by
Thomas Gleixner
parent
7cf37e87dd
commit
1e6d767924
@@ -202,7 +202,7 @@ int security_syslog(int type)
|
||||
return security_ops->syslog(type);
|
||||
}
|
||||
|
||||
int security_settime(struct timespec *ts, struct timezone *tz)
|
||||
int security_settime(const struct timespec *ts, const struct timezone *tz)
|
||||
{
|
||||
return security_ops->settime(ts, tz);
|
||||
}
|
||||
|
Reference in New Issue
Block a user