diff options
author | imp <imp@FreeBSD.org> | 2003-10-23 17:48:53 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-10-23 17:48:53 +0000 |
commit | 4407135243775bdeb51d4a1b9cdf726adce221bb (patch) | |
tree | 5d4c005c7c65c5e507fea5d773e9fa0f0ced6841 /sys/netatalk | |
parent | 079a3d5b1e0526cce2a7d07e5c1f701e304bb6b4 (diff) | |
download | FreeBSD-src-4407135243775bdeb51d4a1b9cdf726adce221bb.zip FreeBSD-src-4407135243775bdeb51d4a1b9cdf726adce221bb.tar.gz |
Remove unnecessary casts to (caddr_t) for if_broadcastaddr.
Diffstat (limited to 'sys/netatalk')
-rw-r--r-- | sys/netatalk/aarp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netatalk/aarp.c b/sys/netatalk/aarp.c index abe6657..022ce5e 100644 --- a/sys/netatalk/aarp.c +++ b/sys/netatalk/aarp.c @@ -183,7 +183,7 @@ aarpwhohas( struct arpcom *ac, struct sockaddr_at *sat ) ea->aarp_spnode = AA_SAT( aa )->sat_addr.s_node; ea->aarp_tpnode = sat->sat_addr.s_node; } else { - bcopy((caddr_t)ac->ac_if.if_broadcastaddr, (caddr_t)eh->ether_dhost, + bcopy(ac->ac_if.if_broadcastaddr, (caddr_t)eh->ether_dhost, sizeof( eh->ether_dhost )); eh->ether_type = htons( ETHERTYPE_AARP ); @@ -224,7 +224,7 @@ aarpresolve( ac, m, destsat, desten ) bcopy( (caddr_t)atmulticastaddr, (caddr_t)desten, sizeof( atmulticastaddr )); } else { - bcopy( (caddr_t)ac->ac_if.if_broadcastaddr, (caddr_t)desten, + bcopy( ac->ac_if.if_broadcastaddr, (caddr_t)desten, sizeof( ac->ac_if.if_addrlen )); } return( 1 ); @@ -599,7 +599,7 @@ aarpprobe( void *arg ) sizeof( ea->aarp_tpnet )); ea->aarp_spnode = ea->aarp_tpnode = AA_SAT( aa )->sat_addr.s_node; } else { - bcopy((caddr_t)ac->ac_if.if_broadcastaddr, (caddr_t)eh->ether_dhost, + bcopy(ac->ac_if.if_broadcastaddr, (caddr_t)eh->ether_dhost, sizeof( eh->ether_dhost )); eh->ether_type = htons( ETHERTYPE_AARP ); ea->aarp_spa = ea->aarp_tpa = AA_SAT( aa )->sat_addr.s_node; |