]> git.stg.codes - stg.git/blobdiff - libs/smux/IpAddress.c
Fix old-style casts.
[stg.git] / libs / smux / IpAddress.c
index 0b073d2d7d0352ef030c5c19ef6fc7704fe3a260..2eaebf9b2cf99e2952f17d54dbd2cad82e94a9e2 100644 (file)
@@ -1,12 +1,10 @@
 /*
 /*
- * Generated by asn1c-0.9.21 (http://lionet.info/asn1c)
+ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
  * From ASN.1 module "RFC1155-SMI"
  *     found in "RFC1155-SMI.asn1"
  * From ASN.1 module "RFC1155-SMI"
  *     found in "RFC1155-SMI.asn1"
- *     `asn1c -fskeletons-copy`
+ *     `asn1c -S/mnt/data/software/asn1c/skeletons -fcompound-names -fwide-types`
  */
 
  */
 
-#include <asn_internal.h>
-
 #include "IpAddress.h"
 
 int
 #include "IpAddress.h"
 
 int
@@ -16,7 +14,7 @@ IpAddress_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
        size_t size;
        
        if(!sptr) {
        size_t size;
        
        if(!sptr) {
-               _ASN_CTFAIL(app_key, td, sptr,
+               ASN__CTFAIL(app_key, td, sptr,
                        "%s: value not given (%s:%d)",
                        td->name, __FILE__, __LINE__);
                return -1;
                        "%s: value not given (%s:%d)",
                        td->name, __FILE__, __LINE__);
                return -1;
@@ -24,11 +22,11 @@ IpAddress_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
        
        size = st->size;
        
        
        size = st->size;
        
-       if(size == 4) {
+       if((size == 4)) {
                /* Constraint check succeeded */
                return 0;
        } else {
                /* Constraint check succeeded */
                return 0;
        } else {
-               _ASN_CTFAIL(app_key, td, sptr,
+               ASN__CTFAIL(app_key, td, sptr,
                        "%s: constraint failed (%s:%d)",
                        td->name, __FILE__, __LINE__);
                return -1;
                        "%s: constraint failed (%s:%d)",
                        td->name, __FILE__, __LINE__);
                return -1;
@@ -43,6 +41,7 @@ static void
 IpAddress_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
        td->free_struct    = asn_DEF_OCTET_STRING.free_struct;
        td->print_struct   = asn_DEF_OCTET_STRING.print_struct;
 IpAddress_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
        td->free_struct    = asn_DEF_OCTET_STRING.free_struct;
        td->print_struct   = asn_DEF_OCTET_STRING.print_struct;
+       td->check_constraints = asn_DEF_OCTET_STRING.check_constraints;
        td->ber_decoder    = asn_DEF_OCTET_STRING.ber_decoder;
        td->der_encoder    = asn_DEF_OCTET_STRING.der_encoder;
        td->xer_decoder    = asn_DEF_OCTET_STRING.xer_decoder;
        td->ber_decoder    = asn_DEF_OCTET_STRING.ber_decoder;
        td->der_encoder    = asn_DEF_OCTET_STRING.der_encoder;
        td->xer_decoder    = asn_DEF_OCTET_STRING.xer_decoder;
@@ -100,7 +99,7 @@ IpAddress_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
        return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
 }
 
        return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
 }
 
-static ber_tlv_tag_t asn_DEF_IpAddress_tags_1[] = {
+static const ber_tlv_tag_t asn_DEF_IpAddress_tags_1[] = {
        (ASN_TAG_CLASS_APPLICATION | (0 << 2)),
        (ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
 };
        (ASN_TAG_CLASS_APPLICATION | (0 << 2)),
        (ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
 };