Messages in this thread Patch in this message | | | Date | Tue, 10 Jul 2007 11:42:00 +0200 (CEST) | From | Jan Engelhardt <> | Subject | [patch] make timespec_equal() take const arguments |
| |
Make arguments of timespec_equal() const struct timespec.
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
--- include/linux/time.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Index: linux-2.6.22/include/linux/time.h =================================================================== --- linux-2.6.22.orig/include/linux/time.h +++ linux-2.6.22/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); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |