diff options
author | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | 2006-10-19 02:44:08 +0000 |
---|---|---|
committer | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | 2006-10-19 02:44:08 +0000 |
commit | ab5e3bffa99f82fe90f080cb91332a5cc35bbc80 (patch) | |
tree | 7c7c0721ecf3174de6e10c07fba941cd71c4bef2 /skeletons | |
parent | 8cc3f747286993f3a00ff36ab5a5128e9ee3b488 (diff) |
proper format strings
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1257 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'skeletons')
-rw-r--r-- | skeletons/INTEGER.c | 4 | ||||
-rw-r--r-- | skeletons/OCTET_STRING.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/skeletons/INTEGER.c b/skeletons/INTEGER.c index 9c8b9ed3..0cbbbaab 100644 --- a/skeletons/INTEGER.c +++ b/skeletons/INTEGER.c @@ -334,8 +334,8 @@ INTEGER__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun } state = ST_SKIPSPACE; if(chunk_size) - ASN_DEBUG("INTEGER body %d 0x%2x..0x%2x", - chunk_size, *lstart, lstop[-1]); + ASN_DEBUG("INTEGER body %ld 0x%2x..0x%2x", + (long)chunk_size, *lstart, lstop[-1]); /* * We may have received a tag here. It will be processed inline. diff --git a/skeletons/OCTET_STRING.c b/skeletons/OCTET_STRING.c index 52c3d3e4..7313498f 100644 --- a/skeletons/OCTET_STRING.c +++ b/skeletons/OCTET_STRING.c @@ -1424,7 +1424,7 @@ OCTET_STRING_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraint_t *ct = pc ? &pc->size : &asn_DEF_OCTET_STRING_constraint; const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - asn_enc_rval_t er; + asn_enc_rval_t er = { 0, 0 }; int ct_extensible = ct->flags & APC_EXTENSIBLE; int inext = 0; /* Lies not within extension root */ int unit_bits = (specs->subvariant != 1) * 7 + 1; @@ -1509,7 +1509,8 @@ OCTET_STRING_encode_uper(asn_TYPE_descriptor_t *td, ssize_t maySave = uper_put_length(po, sizeinunits); if(maySave < 0) _ASN_ENCODE_FAILED; - ASN_DEBUG("Encoding %d of %d", maySave, sizeinunits); + ASN_DEBUG("Encoding %ld of %ld", + (long)maySave, (long)sizeinunits); if(squeeze) { ret = OCTET_STRING_per_put_squeezed(po, buf, |