diff options
author | Lev Walkin <vlm@lionet.info> | 2014-01-13 23:08:47 -0800 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2014-01-14 00:58:26 -0800 |
commit | aa61a0f8216d9cc333694405f7efba364a101258 (patch) | |
tree | 648e96f202e81447d068163485249c9b95147133 /skeletons/OCTET_STRING.c | |
parent | daeb2160cc934d660b964415d13fbd2d0b3a858c (diff) |
pointer warning fixes
Diffstat (limited to 'skeletons/OCTET_STRING.c')
-rw-r--r-- | skeletons/OCTET_STRING.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/skeletons/OCTET_STRING.c b/skeletons/OCTET_STRING.c index 44ed4190..f2eec13a 100644 --- a/skeletons/OCTET_STRING.c +++ b/skeletons/OCTET_STRING.c @@ -195,7 +195,7 @@ OCTET_STRING_decode_ber(asn_codec_ctx_t *opt_codec_ctx, } /* Restore parsing context */ - ctx = (asn_struct_ctx_t *)((void *)st + specs->ctx_offset); + ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset); switch(ctx->phase) { case 0: @@ -1143,7 +1143,7 @@ OCTET_STRING__decode_xer(asn_codec_ctx_t *opt_codec_ctx, } /* Restore parsing context */ - ctx = (asn_struct_ctx_t *)(((void *)*sptr) + specs->ctx_offset); + ctx = (asn_struct_ctx_t *)(((char *)*sptr) + specs->ctx_offset); return xer_decode_general(opt_codec_ctx, ctx, *sptr, xml_tag, buf_ptr, size, opt_unexpected_tag_decoder, body_receiver); @@ -1716,7 +1716,7 @@ OCTET_STRING_free(asn_TYPE_descriptor_t *td, void *sptr, int contents_only) { ? (asn_OCTET_STRING_specifics_t *)td->specifics : &asn_DEF_OCTET_STRING_specs; asn_struct_ctx_t *ctx = (asn_struct_ctx_t *) - ((void *)st + specs->ctx_offset); + ((char *)st + specs->ctx_offset); struct _stack *stck; if(!td || !st) |