diff --git a/skeletons/OCTET_STRING.c b/skeletons/OCTET_STRING.c index cb5029f86..2a1efdd9c 100644 --- a/skeletons/OCTET_STRING.c +++ b/skeletons/OCTET_STRING.c @@ -160,7 +160,7 @@ OS__add_stack_el(struct _stack *st) { nel = (struct _stack_el *)CALLOC(1, sizeof(struct _stack_el)); if(nel == NULL) return NULL; - + if(st->tail) { /* Increase a subcontainment depth */ nel->cont_level = st->tail->cont_level + 1; @@ -748,7 +748,7 @@ OCTET_STRING__handle_control_chars(void *struct_ptr, const void *chunk_buf, size return 0; } } - + return -1; /* No, it's not */ } @@ -1653,8 +1653,8 @@ OCTET_STRING_encode_uper(const asn_TYPE_descriptor_t *td, #endif /* ASN_DISABLE_PER_SUPPORT */ int -OCTET_STRING_print(const asn_TYPE_descriptor_t *td, const void *sptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { +__OCTET_STRING_print(const asn_TYPE_descriptor_t *td, const void *sptr, + int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { const char * const h2c = "0123456789ABCDEF"; const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; char scratch[16 * 3 + 4]; @@ -1693,6 +1693,7 @@ OCTET_STRING_print(const asn_TYPE_descriptor_t *td, const void *sptr, return 0; } +CC_WEAK_ALIAS(__OCTET_STRING_print, OCTET_STRING_print); int OCTET_STRING_print_utf8(const asn_TYPE_descriptor_t *td, const void *sptr, diff --git a/skeletons/OCTET_STRING.h b/skeletons/OCTET_STRING.h index e07a1d842..ec35906f3 100644 --- a/skeletons/OCTET_STRING.h +++ b/skeletons/OCTET_STRING.h @@ -22,6 +22,7 @@ extern asn_TYPE_descriptor_t asn_DEF_OCTET_STRING; extern asn_TYPE_operation_t asn_OP_OCTET_STRING; asn_struct_free_f OCTET_STRING_free; +asn_struct_print_f __OCTET_STRING_print; asn_struct_print_f OCTET_STRING_print; asn_struct_print_f OCTET_STRING_print_utf8; asn_struct_compare_f OCTET_STRING_compare;