aboutsummaryrefslogtreecommitdiffstats
path: root/asn1c
diff options
context:
space:
mode:
Diffstat (limited to 'asn1c')
-rw-r--r--asn1c/tests/check-119.-fwide-types.-gen-PER.c4
-rw-r--r--asn1c/tests/check-119.-gen-PER.c4
-rw-r--r--asn1c/tests/check-31.-fwide-types.c4
-rw-r--r--asn1c/tests/check-70.-fwide-types.c4
-rw-r--r--asn1c/tests/check-70.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/asn1c/tests/check-119.-fwide-types.-gen-PER.c b/asn1c/tests/check-119.-fwide-types.-gen-PER.c
index c95d28f1..e376d337 100644
--- a/asn1c/tests/check-119.-fwide-types.-gen-PER.c
+++ b/asn1c/tests/check-119.-fwide-types.-gen-PER.c
@@ -115,7 +115,7 @@ load_object_from(const char *fname, enum expectation expectation, char *fbuf, si
int fbuf_left = size;
int fbuf_chunk = csize;
- fprintf(stderr, "LOADING OBJECT OF SIZE %d FROM [%s] as %s,"
+ fprintf(stderr, "LOADING OBJECT OF SIZE %zd FROM [%s] as %s,"
" chunks %zd\n",
size, fname, how==AS_PER?"PER":"XER", csize);
@@ -170,7 +170,7 @@ load_object_from(const char *fname, enum expectation expectation, char *fbuf, si
if(expectation != EXP_BROKEN) {
assert(rval.code == RC_OK);
if(how == AS_PER) {
- fprintf(stderr, "[left %d, off %d, size %d]\n",
+ fprintf(stderr, "[left %d, off %d, size %zd]\n",
fbuf_left, fbuf_offset, size);
assert(fbuf_offset == size);
} else {
diff --git a/asn1c/tests/check-119.-gen-PER.c b/asn1c/tests/check-119.-gen-PER.c
index b4583eb9..bbd4aafa 100644
--- a/asn1c/tests/check-119.-gen-PER.c
+++ b/asn1c/tests/check-119.-gen-PER.c
@@ -115,7 +115,7 @@ load_object_from(const char *fname, enum expectation expectation, char *fbuf, si
int fbuf_left = size;
int fbuf_chunk = csize;
- fprintf(stderr, "LOADING OBJECT OF SIZE %d FROM [%s] as %s,"
+ fprintf(stderr, "LOADING OBJECT OF SIZE %zd FROM [%s] as %s,"
" chunks %zd\n",
size, fname, how==AS_PER?"PER":"XER", csize);
@@ -170,7 +170,7 @@ load_object_from(const char *fname, enum expectation expectation, char *fbuf, si
if(expectation != EXP_BROKEN) {
assert(rval.code == RC_OK);
if(how == AS_PER) {
- fprintf(stderr, "[left %d, off %d, size %d]\n",
+ fprintf(stderr, "[left %d, off %d, size %zd]\n",
fbuf_left, fbuf_offset, size);
assert(fbuf_offset == size);
} else {
diff --git a/asn1c/tests/check-31.-fwide-types.c b/asn1c/tests/check-31.-fwide-types.c
index 22fdd1f9..e5ab3b15 100644
--- a/asn1c/tests/check-31.-fwide-types.c
+++ b/asn1c/tests/check-31.-fwide-types.c
@@ -69,7 +69,7 @@ uint8_t buf1_reconstr[] = {
};
-sie_t buf_pos;
+size_t buf_pos;
static int bytes_compare(const void *bufferp, size_t size, void *key) {
const uint8_t *buffer = bufferp;
assert(buf_pos + size <= sizeof(buf1_reconstr));
@@ -81,7 +81,7 @@ static int bytes_compare(const void *bufferp, size_t size, void *key) {
for(; size; buf_pos++, size--, buffer++) {
if(buf1_reconstr[buf_pos] != *buffer) {
fprintf(stderr,
- "Byte %d is different: %d != %d (%x != %x)\n",
+ "Byte %zd is different: %d != %d (%x != %x)\n",
buf_pos,
*buffer, buf1_reconstr[buf_pos],
*buffer, buf1_reconstr[buf_pos]
diff --git a/asn1c/tests/check-70.-fwide-types.c b/asn1c/tests/check-70.-fwide-types.c
index cc003194..3e9791fd 100644
--- a/asn1c/tests/check-70.-fwide-types.c
+++ b/asn1c/tests/check-70.-fwide-types.c
@@ -93,7 +93,7 @@ load_object_from(enum expectation expectation, char *fbuf, size_t size, enum der
asn_dec_rval_t (*zer_decode)(struct asn_codec_ctx_s *,
asn_TYPE_descriptor_t *, void **, const void *, size_t);
PDU_t *st = 0;
- int csize = 1;
+ size_t csize = 1;
if(how == AS_DER)
zer_decode = ber_decode;
@@ -109,7 +109,7 @@ load_object_from(enum expectation expectation, char *fbuf, size_t size, enum der
int fbuf_left = size;
int fbuf_chunk = csize;
- fprintf(stderr, "LOADING OBJECT OF SIZE %d, chunks %d\n",
+ fprintf(stderr, "LOADING OBJECT OF SIZE %zd, chunks %zd\n",
size, csize);
if(st) asn_DEF_PDU.free_struct(&asn_DEF_PDU, st, 0);
diff --git a/asn1c/tests/check-70.c b/asn1c/tests/check-70.c
index b9bffad0..5db6ba70 100644
--- a/asn1c/tests/check-70.c
+++ b/asn1c/tests/check-70.c
@@ -83,7 +83,7 @@ load_object_from(enum expectation expectation, char *fbuf, size_t size, enum der
asn_dec_rval_t (*zer_decode)(struct asn_codec_ctx_s *,
asn_TYPE_descriptor_t *, void **, const void *, size_t);
PDU_t *st = 0;
- int csize = 1;
+ size_t csize = 1;
if(how == AS_DER)
zer_decode = ber_decode;
@@ -99,7 +99,7 @@ load_object_from(enum expectation expectation, char *fbuf, size_t size, enum der
int fbuf_left = size;
int fbuf_chunk = csize;
- fprintf(stderr, "LOADING OBJECT OF SIZE %d, chunks %d\n",
+ fprintf(stderr, "LOADING OBJECT OF SIZE %zd, chunks %zd\n",
size, csize);
if(st) asn_DEF_PDU.free_struct(&asn_DEF_PDU, st, 0);