user: i can't do this anymore
Living as a sheep herder on a lonely island is becoming an increasingly appealing option the more i am exposed to my stupidity and inability to memorize the return values of basic libc functions that i even implemented myself two fucking months ago.
This commit is contained in:
parent
44f45c71bc
commit
9c1b546b16
1 changed files with 2 additions and 2 deletions
|
@ -16,13 +16,13 @@
|
|||
size_t copy_from_user(void *dest, __user const void *src, size_t len)
|
||||
{
|
||||
void *tmp = memcpy(dest, src, len);
|
||||
return (size_t)tmp - (size_t)dest;
|
||||
return len;
|
||||
}
|
||||
|
||||
size_t copy_to_user(__user void *dest, const void *src, size_t len)
|
||||
{
|
||||
void *tmp = memcpy(dest, src, len);
|
||||
return (size_t)tmp - (size_t)dest;
|
||||
return len;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue