mirror of
https://github.com/ipxe/ipxe
synced 2026-02-04 15:09:29 +03:00
Fix compiler warnings that appear only on OpenBSD.
This commit is contained in:
@@ -75,8 +75,8 @@ static int asn1_start_object ( struct asn1_cursor *cursor,
|
||||
len_len = 1;
|
||||
}
|
||||
if ( cursor->len < len_len ) {
|
||||
DBGC ( cursor, "ASN1 %p bad length field length %d (max %d)\n",
|
||||
cursor, len_len, cursor->len );
|
||||
DBGC ( cursor, "ASN1 %p bad length field length %d (max "
|
||||
"%zd)\n", cursor, len_len, cursor->len );
|
||||
goto notfound;
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ static int asn1_start_object ( struct asn1_cursor *cursor,
|
||||
cursor->len--;
|
||||
}
|
||||
if ( cursor->len < len ) {
|
||||
DBGC ( cursor, "ASN1 %p bad length %d (max %d)\n",
|
||||
DBGC ( cursor, "ASN1 %p bad length %d (max %zd)\n",
|
||||
cursor, len, cursor->len );
|
||||
goto notfound;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ int chap_init ( struct chap_challenge *chap,
|
||||
state_len = ( digest->ctxsize + digest->digestsize );
|
||||
state = malloc ( state_len );
|
||||
if ( ! state ) {
|
||||
DBG ( "CHAP %p could not allocate %d bytes for state\n",
|
||||
DBG ( "CHAP %p could not allocate %zd bytes for state\n",
|
||||
chap, state_len );
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user