diff options
author | 2008-05-27 18:46:00 +0000 | |
---|---|---|
committer | 2008-05-27 18:46:00 +0000 | |
commit | 20fce977aadac3358da45d5027d7d19cdc03b0fe (patch) | |
tree | e1acdd9f822949ee35a6e57d097d42a55be5a68e /gnu/lib/libiberty/src/mempcpy.c | |
parent | Don't fail to compile when not in debug mode. (diff) | |
download | wireguard-openbsd-20fce977aadac3358da45d5027d7d19cdc03b0fe.tar.xz wireguard-openbsd-20fce977aadac3358da45d5027d7d19cdc03b0fe.zip |
Update libiberty to the version found in binutils 2.17.1 (which still
identifies itself as the gcc 3 version...)
Diffstat (limited to 'gnu/lib/libiberty/src/mempcpy.c')
-rw-r--r-- | gnu/lib/libiberty/src/mempcpy.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/gnu/lib/libiberty/src/mempcpy.c b/gnu/lib/libiberty/src/mempcpy.c index b0dccfa6167..beda7dfc982 100644 --- a/gnu/lib/libiberty/src/mempcpy.c +++ b/gnu/lib/libiberty/src/mempcpy.c @@ -1,5 +1,5 @@ /* Implement the mempcpy function. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>. This file is part of the libiberty library. @@ -15,8 +15,8 @@ Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with libiberty; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ +not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +Boston, MA 02110-1301, USA. */ /* @@ -30,19 +30,12 @@ Copies @var{length} bytes from memory region @var{in} to region */ #include <ansidecl.h> -#ifdef ANSI_PROTOTYPES #include <stddef.h> -#else -#define size_t unsigned long -#endif -extern PTR memcpy PARAMS ((PTR, const PTR, size_t)); +extern PTR memcpy (PTR, const PTR, size_t); PTR -mempcpy (dst, src, len) - PTR dst; - const PTR src; - size_t len; +mempcpy (PTR dst, const PTR src, size_t len) { return (char *) memcpy (dst, src, len) + len; } |