summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/os/full_ipadr.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2009-02-02 23:41:40 +0000
committerKen Raeburn <raeburn@mit.edu>2009-02-02 23:41:40 +0000
commitd431a41a7a0f44ff2d0e5c69fb8a6901f72d0b55 (patch)
treee4f6373671367a5afb16e2cc1e4bbbf44ab015b7 /src/lib/krb5/os/full_ipadr.c
parent2fbe8a9edf3b69e68c226a79dad0747f19decd0b (diff)
downloadkrb5-d431a41a7a0f44ff2d0e5c69fb8a6901f72d0b55.tar.gz
krb5-d431a41a7a0f44ff2d0e5c69fb8a6901f72d0b55.tar.xz
krb5-d431a41a7a0f44ff2d0e5c69fb8a6901f72d0b55.zip
Remove unnecessary pointer casts in args to free,memcpy,memset,memchr except unicode, windows code
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21875 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/os/full_ipadr.c')
-rw-r--r--src/lib/krb5/os/full_ipadr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/krb5/os/full_ipadr.c b/src/lib/krb5/os/full_ipadr.c
index 309c3b57f..795ce1e01 100644
--- a/src/lib/krb5/os/full_ipadr.c
+++ b/src/lib/krb5/os/full_ipadr.c
@@ -59,25 +59,25 @@ krb5_make_full_ipaddr(krb5_context context, krb5_int32 adr,
marshal = retaddr->contents;
temptype = htons(ADDRTYPE_INET);
- (void) memcpy((char *)marshal, (char *)&temptype, sizeof(temptype));
+ (void) memcpy(marshal, &temptype, sizeof(temptype));
marshal += sizeof(temptype);
templength = htonl(sizeof(smushaddr));
- (void) memcpy((char *)marshal, (char *)&templength, sizeof(templength));
+ (void) memcpy(marshal, &templength, sizeof(templength));
marshal += sizeof(templength);
- (void) memcpy((char *)marshal, (char *)&smushaddr, sizeof(smushaddr));
+ (void) memcpy(marshal, &smushaddr, sizeof(smushaddr));
marshal += sizeof(smushaddr);
temptype = htons(ADDRTYPE_IPPORT);
- (void) memcpy((char *)marshal, (char *)&temptype, sizeof(temptype));
+ (void) memcpy(marshal, &temptype, sizeof(temptype));
marshal += sizeof(temptype);
templength = htonl(sizeof(smushport));
- (void) memcpy((char *)marshal, (char *)&templength, sizeof(templength));
+ (void) memcpy(marshal, &templength, sizeof(templength));
marshal += sizeof(templength);
- (void) memcpy((char *)marshal, (char *)&smushport, sizeof(smushport));
+ (void) memcpy(marshal, &smushport, sizeof(smushport));
marshal += sizeof(smushport);
*outaddr = retaddr;