diff options
author | Jan Engelhardt <jengelh@computergmbh.de> | 2007-07-17 04:03:53 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 10:23:03 -0700 |
commit | 5b78cc9ac8602baafebb75a09025ffb17d1aebc2 (patch) | |
tree | ccd40675579257d38bb4e0239f6b25b68402dd4d /include/linux/time.h | |
parent | 9281acea6a3687ff0f262e0be31eac34895b95d7 (diff) | |
download | lwn-5b78cc9ac8602baafebb75a09025ffb17d1aebc2.tar.gz lwn-5b78cc9ac8602baafebb75a09025ffb17d1aebc2.zip |
make timespec_equal() take const arguments
Make arguments of timespec_equal() const struct timespec.
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: john stultz <johnstul@us.ibm.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/time.h')
-rw-r--r-- | include/linux/time.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/time.h b/include/linux/time.h index 4bb05a829be9..ec3b0ced0afe 100644 --- a/include/linux/time.h +++ b/include/linux/time.h @@ -36,7 +36,8 @@ struct timezone { #define NSEC_PER_SEC 1000000000L #define FSEC_PER_SEC 1000000000000000L -static inline int timespec_equal(struct timespec *a, struct timespec *b) +static inline int timespec_equal(const struct timespec *a, + const struct timespec *b) { return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); } |