Commit d7703cf7 authored by Lev Walkin's avatar Lev Walkin

remove warnings

parent 27126181
...@@ -27,12 +27,15 @@ ...@@ -27,12 +27,15 @@
*/ */
#include "sys-common.h" #include "sys-common.h"
#define ASN_DISABLE_PER_SUPPORT 1
#include <asn1parser.h> /* For static string tables */ #include <asn1parser.h> /* For static string tables */
#include <asn_application.h> #include <asn_application.h>
#include <constraints.c> #include <constraints.c>
#include <ber_tlv_tag.c> #include <ber_tlv_tag.c>
#include <ber_tlv_length.c> #include <ber_tlv_length.c>
#include <INTEGER.c>
#include <OBJECT_IDENTIFIER.c> #include <OBJECT_IDENTIFIER.c>
#include <RELATIVE-OID.c> #include <RELATIVE-OID.c>
#include <asn_codecs_prim.c> #include <asn_codecs_prim.c>
...@@ -392,7 +395,7 @@ print_TL(int fin, asn1c_integer_t offset, int level, int constr, ssize_t tlen, b ...@@ -392,7 +395,7 @@ print_TL(int fin, asn1c_integer_t offset, int level, int constr, ssize_t tlen, b
return; return;
} }
while(level-- > 0) printf(indent_bytes); /* Print indent */ while(level-- > 0) fputs(indent_bytes, stdout); /* Print indent */
printf(fin ? "</" : "<"); printf(fin ? "</" : "<");
printf(constr ? ((tlv_len == -1) ? "I" : "C") : "P"); printf(constr ? ((tlv_len == -1) ? "I" : "C") : "P");
......
...@@ -24,8 +24,13 @@ asn_TYPE_descriptor_t asn_DEF_INTEGER = { ...@@ -24,8 +24,13 @@ asn_TYPE_descriptor_t asn_DEF_INTEGER = {
INTEGER_encode_der, INTEGER_encode_der,
INTEGER_decode_xer, INTEGER_decode_xer,
INTEGER_encode_xer, INTEGER_encode_xer,
#ifdef ASN_DISABLE_PER_SUPPORT
0,
0,
#else
INTEGER_decode_uper, /* Unaligned PER decoder */ INTEGER_decode_uper, /* Unaligned PER decoder */
INTEGER_encode_uper, /* Unaligned PER encoder */ INTEGER_encode_uper, /* Unaligned PER encoder */
#endif /* ASN_DISABLE_PER_SUPPORT */
0, /* Use generic outmost tag fetcher */ 0, /* Use generic outmost tag fetcher */
asn_DEF_INTEGER_tags, asn_DEF_INTEGER_tags,
sizeof(asn_DEF_INTEGER_tags) / sizeof(asn_DEF_INTEGER_tags[0]), sizeof(asn_DEF_INTEGER_tags) / sizeof(asn_DEF_INTEGER_tags[0]),
...@@ -557,6 +562,8 @@ INTEGER_encode_xer(asn_TYPE_descriptor_t *td, void *sptr, ...@@ -557,6 +562,8 @@ INTEGER_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
_ASN_ENCODED_OK(er); _ASN_ENCODED_OK(er);
} }
#ifndef ASN_DISABLE_PER_SUPPORT
asn_dec_rval_t asn_dec_rval_t
INTEGER_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, INTEGER_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) { asn_per_constraints_t *constraints, void **sptr, asn_per_data_t *pd) {
...@@ -765,6 +772,8 @@ INTEGER_encode_uper(asn_TYPE_descriptor_t *td, ...@@ -765,6 +772,8 @@ INTEGER_encode_uper(asn_TYPE_descriptor_t *td,
_ASN_ENCODED_OK(er); _ASN_ENCODED_OK(er);
} }
#endif /* ASN_DISABLE_PER_SUPPORT */
int int
asn_INTEGER2long(const INTEGER_t *iptr, long *lptr) { asn_INTEGER2long(const INTEGER_t *iptr, long *lptr) {
uint8_t *b, *end; uint8_t *b, *end;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment