summaryrefslogtreecommitdiff
path: root/kernel/compat.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-03-06 08:49:01 -0800
committerJaroslav Kysela <perex@suse.cz>2004-03-06 08:49:01 -0800
commite729d83fe68fd388352dcb26cfc6fcdb8147b1f3 (patch)
tree817c41cee1278dc10d0b3ec013cd52fcde980b4d /kernel/compat.c
parent5b9c017de3fc96695bb606c191acce716f6d08fb (diff)
[PATCH] fix put_compat_timespec prototype
From: Arnd Bergmann <arnd@arndb.de> The wrong argument in put_compat_timespec is marked const, causing unnecessary compiler warnings.
Diffstat (limited to 'kernel/compat.c')
-rw-r--r--kernel/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/compat.c b/kernel/compat.c
index f69dcd644a22..f05cda344b4d 100644
--- a/kernel/compat.c
+++ b/kernel/compat.c
@@ -30,7 +30,7 @@ int get_compat_timespec(struct timespec *ts, const struct compat_timespec *cts)
__get_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0;
}
-int put_compat_timespec(struct timespec *ts, const struct compat_timespec *cts)
+int put_compat_timespec(const struct timespec *ts, struct compat_timespec *cts)
{
return (verify_area(VERIFY_WRITE, cts, sizeof(*cts)) ||
__put_user(ts->tv_sec, &cts->tv_sec) ||