aboutsummaryrefslogtreecommitdiff
path: root/libiberty/bcopy.c
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2006-10-26 03:16:11 +0000
committerDanny Smith <dannysmith@gcc.gnu.org>2006-10-26 03:16:11 +0000
commit7445de0a7b7dceda90638c48bc7933271f3ca5ce (patch)
treeb9531f4e002ae77498330923913f89208814a92c /libiberty/bcopy.c
parent0da67a3234a3bf9c2fc3458ea6a1861303f1364d (diff)
downloadgcc-7445de0a7b7dceda90638c48bc7933271f3ca5ce.zip
gcc-7445de0a7b7dceda90638c48bc7933271f3ca5ce.tar.gz
gcc-7445de0a7b7dceda90638c48bc7933271f3ca5ce.tar.bz2
pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
(find_executable): Likewise. (win32_spawn): Cast alloca return to (char**). Replace malloc with XNEWVEC. bcopy.c (bcopy): Add explict casts in assignments. From-SVN: r118058
Diffstat (limited to 'libiberty/bcopy.c')
-rw-r--r--libiberty/bcopy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/bcopy.c b/libiberty/bcopy.c
index 1e2eca9..f9b7a8a 100644
--- a/libiberty/bcopy.c
+++ b/libiberty/bcopy.c
@@ -16,8 +16,8 @@ bcopy (const void *src, void *dest, size_t len)
{
if (dest < src)
{
- const char *firsts = src;
- char *firstd = dest;
+ const char *firsts = (const char *) src;
+ char *firstd = (char *) dest;
while (len--)
*firstd++ = *firsts++;
}