diff options
author | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | 2004-09-26 13:10:40 +0000 |
---|---|---|
committer | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | 2004-09-26 13:10:40 +0000 |
commit | 6678cb11c1990e5f816a5e0230d18ce9f72804fa (patch) | |
tree | 3ca594c26afc87cfb43b7bbd54b7bfc6e5ee128c /skeletons/BMPString.c | |
parent | b21cfd41d061a1749c3792081d9e53e3295a999c (diff) |
clean-up; removed unnecessary field from type descriptor
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@400 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'skeletons/BMPString.c')
-rw-r--r-- | skeletons/BMPString.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/skeletons/BMPString.c b/skeletons/BMPString.c index bdbd40d6..2a112994 100644 --- a/skeletons/BMPString.c +++ b/skeletons/BMPString.c @@ -28,7 +28,6 @@ asn1_TYPE_descriptor_t asn1_DEF_BMPString = { asn1_DEF_BMPString_tags, sizeof(asn1_DEF_BMPString_tags) / sizeof(asn1_DEF_BMPString_tags[0]), - -1, /* Both ways are fine */ 0, 0, /* No members */ 0 /* No specifics */ }; @@ -101,7 +100,8 @@ BMPString_print(asn1_TYPE_descriptor_t *td, const void *sptr, int ilevel, (void)td; /* Unused argument */ (void)ilevel; /* Unused argument */ - if(!st || !st->buf) return cb("<absent>", 8, app_key); + if(!st || !st->buf) + return (cb("<absent>", 8, app_key) < 0) ? -1 : 0; if(BMPString__dump(st, cb, app_key) < 0) return -1; |