aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/OCTET_STRING.c
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2006-10-19 02:44:08 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2006-10-19 02:44:08 +0000
commitab5e3bffa99f82fe90f080cb91332a5cc35bbc80 (patch)
tree7c7c0721ecf3174de6e10c07fba941cd71c4bef2 /skeletons/OCTET_STRING.c
parent8cc3f747286993f3a00ff36ab5a5128e9ee3b488 (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/OCTET_STRING.c')
-rw-r--r--skeletons/OCTET_STRING.c5
1 files changed, 3 insertions, 2 deletions
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,