diff options
author | Michael Brown | 2007-12-06 21:16:46 +0100 |
---|---|---|
committer | Michael Brown | 2007-12-06 21:16:46 +0100 |
commit | 1949641d102b0fdc8d4314abaee9ba055481fcc0 (patch) | |
tree | 0c302355c988e9b1d2c942bb1cc6d6170a933944 /src/crypto | |
parent | Kill off some warnings-problematic debug statements in ndp.c; the code (diff) | |
download | ipxe-1949641d102b0fdc8d4314abaee9ba055481fcc0.tar.gz ipxe-1949641d102b0fdc8d4314abaee9ba055481fcc0.tar.xz ipxe-1949641d102b0fdc8d4314abaee9ba055481fcc0.zip |
Fix compiler warnings that appear only on OpenBSD.
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/asn1.c | 6 | ||||
-rw-r--r-- | src/crypto/chap.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/crypto/asn1.c b/src/crypto/asn1.c index 2ff82008..0a69162a 100644 --- a/src/crypto/asn1.c +++ b/src/crypto/asn1.c @@ -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; } diff --git a/src/crypto/chap.c b/src/crypto/chap.c index 2f624564..13b8fda2 100644 --- a/src/crypto/chap.c +++ b/src/crypto/chap.c @@ -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; } |