aboutsummaryrefslogtreecommitdiff
path: root/sbin/atm
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2003-03-26 04:17:13 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2003-03-26 04:17:13 +0000
commit15d8f3d44748b81aefe79cc737e725ad35537d84 (patch)
treefdf439c142fd5a3a25d7603fe100628437c7da7e /sbin/atm
parent2dc4ca43ecc1cfce6e202895f197c25e66abacf7 (diff)
downloadsrc-15d8f3d44748b81aefe79cc737e725ad35537d84.tar.gz
src-15d8f3d44748b81aefe79cc737e725ad35537d84.zip
Get rid of a few caddr_t's.
Submitted by: trhodes
Notes
Notes: svn path=/head/; revision=112667
Diffstat (limited to 'sbin/atm')
-rw-r--r--sbin/atm/ilmid/ilmid.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sbin/atm/ilmid/ilmid.c b/sbin/atm/ilmid/ilmid.c
index 4f94f74c9d5d..844aec000c1a 100644
--- a/sbin/atm/ilmid/ilmid.c
+++ b/sbin/atm/ilmid/ilmid.c
@@ -865,12 +865,12 @@ print_header ( Hdr )
void
parse_oids ( h, bp )
Snmp_Header *h;
- caddr_t *bp;
+ u_char **bp;
{
int len = h->varlen;
int sublen;
Variable *var;
- caddr_t bufp = *bp;
+ u_char *bufp = *bp;
while ( len > 0 ) {
if ( *bufp++ == ASN_SEQUENCE ) {
@@ -900,7 +900,7 @@ parse_oids ( h, bp )
*bp = bufp;
return;
}
- asn_get_objid ( &bufp, &var->oid, &len );
+ asn_get_objid ( (u_char **)&bufp, &var->oid, &len );
var->type = *bufp++;
len--;
switch ( var->type ) {
@@ -2371,7 +2371,7 @@ ilmi_do_state ()
for ( ; ; ) {
int count;
int n;
- caddr_t bpp;
+ u_char *bpp;
Snmp_Header *Hdr;
/*
@@ -2550,8 +2550,8 @@ ilmi_do_state ()
break;
case PDU_TYPE_SET:
/* Look for SET_PREFIX Objid */
- if ( oid_ncmp ( (caddr_t)&Hdr->head->oid,
- (caddr_t)&Objids[SETPFX_OBJID],
+ if ( oid_ncmp ( &Hdr->head->oid,
+ &Objids[SETPFX_OBJID],
Objids[SETPFX_OBJID].oid[0] ) == 0 ) {
set_prefix ( &Hdr->head->oid, Hdr, intf );
/* Reply to SET before sending our ADDRESS */
@@ -2591,8 +2591,8 @@ ilmi_do_state ()
break;
case PDU_TYPE_SET:
/* Look for SET_PREFIX Objid */
- if ( oid_ncmp ( (caddr_t)&Hdr->head->oid,
- (caddr_t)&Objids[SETPFX_OBJID],
+ if ( oid_ncmp ( &Hdr->head->oid,
+ &Objids[SETPFX_OBJID],
Objids[SETPFX_OBJID].oid[0] ) == 0 ) {
set_prefix ( &Hdr->head->oid, Hdr, intf );
/* Reply to SET before sending our ADDRESS */