aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/NativeInteger.c
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2005-03-10 18:52:02 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2005-03-10 18:52:02 +0000
commitb02dcc60edbf5729b202e9306b186bd5bc9e23d4 (patch)
treee78d71202acf88959f2d4c7d19b6d9790ec8314d /skeletons/NativeInteger.c
parent5ba49f56ce05d98afee6d0d90dd4722794e85830 (diff)
added const qualifier
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@801 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'skeletons/NativeInteger.c')
-rw-r--r--skeletons/NativeInteger.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/skeletons/NativeInteger.c b/skeletons/NativeInteger.c
index 102372c4..acdbff6f 100644
--- a/skeletons/NativeInteger.c
+++ b/skeletons/NativeInteger.c
@@ -44,7 +44,7 @@ asn_TYPE_descriptor_t asn_DEF_NativeInteger = {
asn_dec_rval_t
NativeInteger_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
asn_TYPE_descriptor_t *td,
- void **nint_ptr, void *buf_ptr, size_t size, int tag_mode) {
+ void **nint_ptr, const void *buf_ptr, size_t size, int tag_mode) {
long *native = (long *)*nint_ptr;
asn_dec_rval_t rval;
ber_tlv_len_t length;
@@ -77,7 +77,7 @@ NativeInteger_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
/*
* Make sure we have this length.
*/
- buf_ptr = ((char *)buf_ptr) + rval.consumed;
+ buf_ptr = ((const char *)buf_ptr) + rval.consumed;
size -= rval.consumed;
if(length > (ber_tlv_len_t)size) {
rval.code = RC_WMORE;
@@ -93,7 +93,7 @@ NativeInteger_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
{
INTEGER_t tmp;
long l;
- tmp.buf = (uint8_t *)buf_ptr;
+ (const uint8_t *)tmp.buf = (const uint8_t *)buf_ptr;
tmp.size = length;
if(asn_INTEGER2long(&tmp, &l)) {
@@ -169,7 +169,7 @@ NativeInteger_encode_der(asn_TYPE_descriptor_t *sd, void *ptr,
asn_dec_rval_t
NativeInteger_decode_xer(asn_codec_ctx_t *opt_codec_ctx,
asn_TYPE_descriptor_t *td, void **sptr, const char *opt_mname,
- void *buf_ptr, size_t size) {
+ const void *buf_ptr, size_t size) {
asn_dec_rval_t rval;
INTEGER_t *st = 0;
void *st_ptr = (void *)&st;