Get rid of a few caddr_t's.
Submitted by: trhodes
This commit is contained in:
parent
2dc4ca43ec
commit
15d8f3d447
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112667
@ -865,12 +865,12 @@ print_header ( Hdr )
|
|||||||
void
|
void
|
||||||
parse_oids ( h, bp )
|
parse_oids ( h, bp )
|
||||||
Snmp_Header *h;
|
Snmp_Header *h;
|
||||||
caddr_t *bp;
|
u_char **bp;
|
||||||
{
|
{
|
||||||
int len = h->varlen;
|
int len = h->varlen;
|
||||||
int sublen;
|
int sublen;
|
||||||
Variable *var;
|
Variable *var;
|
||||||
caddr_t bufp = *bp;
|
u_char *bufp = *bp;
|
||||||
|
|
||||||
while ( len > 0 ) {
|
while ( len > 0 ) {
|
||||||
if ( *bufp++ == ASN_SEQUENCE ) {
|
if ( *bufp++ == ASN_SEQUENCE ) {
|
||||||
@ -900,7 +900,7 @@ parse_oids ( h, bp )
|
|||||||
*bp = bufp;
|
*bp = bufp;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
asn_get_objid ( &bufp, &var->oid, &len );
|
asn_get_objid ( (u_char **)&bufp, &var->oid, &len );
|
||||||
var->type = *bufp++;
|
var->type = *bufp++;
|
||||||
len--;
|
len--;
|
||||||
switch ( var->type ) {
|
switch ( var->type ) {
|
||||||
@ -2371,7 +2371,7 @@ ilmi_do_state ()
|
|||||||
for ( ; ; ) {
|
for ( ; ; ) {
|
||||||
int count;
|
int count;
|
||||||
int n;
|
int n;
|
||||||
caddr_t bpp;
|
u_char *bpp;
|
||||||
Snmp_Header *Hdr;
|
Snmp_Header *Hdr;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -2550,8 +2550,8 @@ ilmi_do_state ()
|
|||||||
break;
|
break;
|
||||||
case PDU_TYPE_SET:
|
case PDU_TYPE_SET:
|
||||||
/* Look for SET_PREFIX Objid */
|
/* Look for SET_PREFIX Objid */
|
||||||
if ( oid_ncmp ( (caddr_t)&Hdr->head->oid,
|
if ( oid_ncmp ( &Hdr->head->oid,
|
||||||
(caddr_t)&Objids[SETPFX_OBJID],
|
&Objids[SETPFX_OBJID],
|
||||||
Objids[SETPFX_OBJID].oid[0] ) == 0 ) {
|
Objids[SETPFX_OBJID].oid[0] ) == 0 ) {
|
||||||
set_prefix ( &Hdr->head->oid, Hdr, intf );
|
set_prefix ( &Hdr->head->oid, Hdr, intf );
|
||||||
/* Reply to SET before sending our ADDRESS */
|
/* Reply to SET before sending our ADDRESS */
|
||||||
@ -2591,8 +2591,8 @@ ilmi_do_state ()
|
|||||||
break;
|
break;
|
||||||
case PDU_TYPE_SET:
|
case PDU_TYPE_SET:
|
||||||
/* Look for SET_PREFIX Objid */
|
/* Look for SET_PREFIX Objid */
|
||||||
if ( oid_ncmp ( (caddr_t)&Hdr->head->oid,
|
if ( oid_ncmp ( &Hdr->head->oid,
|
||||||
(caddr_t)&Objids[SETPFX_OBJID],
|
&Objids[SETPFX_OBJID],
|
||||||
Objids[SETPFX_OBJID].oid[0] ) == 0 ) {
|
Objids[SETPFX_OBJID].oid[0] ) == 0 ) {
|
||||||
set_prefix ( &Hdr->head->oid, Hdr, intf );
|
set_prefix ( &Hdr->head->oid, Hdr, intf );
|
||||||
/* Reply to SET before sending our ADDRESS */
|
/* Reply to SET before sending our ADDRESS */
|
||||||
|
Loading…
Reference in New Issue
Block a user