diff options
author | dkf <dkf@noemail.net> | 2007-04-17 14:49:52 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2007-04-17 14:49:52 (GMT) |
commit | c4b6ad1ceb3dd7475f09d4af2f35f31c2ac0d65b (patch) | |
tree | d38a0997ec4141e501a5f19512dfe1445d8c4404 /generic/tclIOGT.c | |
parent | 6b4e4cde646d4f2d4569427d3363a5212b7882c9 (diff) | |
download | tcl-c4b6ad1ceb3dd7475f09d4af2f35f31c2ac0d65b.zip tcl-c4b6ad1ceb3dd7475f09d4af2f35f31c2ac0d65b.tar.gz tcl-c4b6ad1ceb3dd7475f09d4af2f35f31c2ac0d65b.tar.bz2 |
Eliminate use of (VOID*) casts when calling memset or memcpy.
FossilOrigin-Name: 45b49489451e09193f60023f5244b0d73a26880e
Diffstat (limited to 'generic/tclIOGT.c')
-rw-r--r-- | generic/tclIOGT.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/generic/tclIOGT.c b/generic/tclIOGT.c index 901ced5..2460e4a 100644 --- a/generic/tclIOGT.c +++ b/generic/tclIOGT.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * CVS: $Id: tclIOGT.c,v 1.16 2006/08/30 17:59:03 hobbs Exp $ + * CVS: $Id: tclIOGT.c,v 1.17 2007/04/17 14:49:53 dkf Exp $ */ #include "tclInt.h" @@ -1344,7 +1344,7 @@ ResultCopy( * We have just enough. Copy everything to the caller. */ - memcpy((VOID *) buf, (VOID *) r->buf, (size_t) toRead); + memcpy(buf, r->buf, (size_t) toRead); r->used = 0; return toRead; } @@ -1355,9 +1355,8 @@ ResultCopy( * requested subset to the caller, and shift the remaining bytes down. */ - memcpy((VOID *) buf, (VOID *) r->buf, (size_t) toRead); - memmove((VOID *) r->buf, (VOID *) (r->buf + toRead), - (size_t) r->used - toRead); + memcpy(buf, r->buf, (size_t) toRead); + memmove(r->buf, r->buf + toRead, (size_t) r->used - toRead); r->used -= toRead; return toRead; @@ -1368,7 +1367,7 @@ ResultCopy( * everything. */ - memcpy((VOID *) buf, (VOID *) r->buf, (size_t) r->used); + memcpy(buf, r->buf, (size_t) r->used); toRead = r->used; r->used = 0; return toRead; |