diff options
author | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-26 03:16:11 +0000 |
---|---|---|
committer | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-26 03:16:11 +0000 |
commit | 1dc5cee9479a543e3f9cdff03936297a04406bb4 (patch) | |
tree | b9531f4e002ae77498330923913f89208814a92c /libiberty/bcopy.c | |
parent | 07f6cb77f69d76b6e684d55316dbc52485b1824d (diff) | |
download | gcc-1dc5cee9479a543e3f9cdff03936297a04406bb4.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118058 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/bcopy.c')
-rw-r--r-- | libiberty/bcopy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/bcopy.c b/libiberty/bcopy.c index 1e2eca9c641..f9b7a8acd5c 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++; } |