Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
bc0b0c50
Commit
bc0b0c50
authored
Aug 02, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove warnings
parent
1fa31c9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
skeletons/constr_SEQUENCE_oer.c
skeletons/constr_SEQUENCE_oer.c
+7
-3
No files found.
skeletons/constr_SEQUENCE_oer.c
View file @
bc0b0c50
...
...
@@ -108,7 +108,6 @@ SEQUENCE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
*/
switch
(
ctx
->
phase
)
{
case
0
:
{
ASN_DEBUG
(
"OER SEQUENCE %s Decoding PHASE 0"
,
td
->
name
);
/*
* Fetch preamble.
*/
...
...
@@ -118,6 +117,8 @@ SEQUENCE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
size_t
preamble_bytes
=
((
7
+
preamble_bits
)
>>
3
);
uint8_t
*
pbytes
;
ASN_DEBUG
(
"OER SEQUENCE %s Decoding PHASE 0"
,
td
->
name
);
ASN_DEBUG
(
"Expecting preamble bits %zu for %s (including %d extension bits)"
,
preamble_bits
,
td
->
name
,
has_extensions_bit
);
...
...
@@ -140,11 +141,12 @@ SEQUENCE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
NEXT_PHASE
(
ctx
);
/* FALL THROUGH */
case
1
:
{
ASN_DEBUG
(
"OER SEQUENCE %s Decoding PHASE 1"
,
td
->
name
);
/* Decode components of the extension root */
asn_per_data_t
*
preamble
=
ctx
->
ptr
;
size_t
edx
;
ASN_DEBUG
(
"OER SEQUENCE %s Decoding PHASE 1"
,
td
->
name
);
for
(
edx
=
(
ctx
->
step
>>
1
);
edx
<
td
->
elements_count
;
edx
++
,
ctx
->
step
=
(
ctx
->
step
&
~
1
)
+
2
)
{
asn_TYPE_member_t
*
elm
=
&
td
->
elements
[
edx
];
...
...
@@ -217,7 +219,6 @@ SEQUENCE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
NEXT_PHASE
(
ctx
);
/* FALL THROUGH */
case
2
:
{
ASN_DEBUG
(
"OER SEQUENCE %s Decoding PHASE 2"
,
td
->
name
);
/* Cleanup preamble. */
asn_per_data_t
*
preamble
=
ctx
->
ptr
;
asn_per_data_t
*
extadds
;
...
...
@@ -233,6 +234,9 @@ SEQUENCE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
const
uint8_t
*
cptr
;
uint8_t
*
uptr
;
}
unconst
;
ASN_DEBUG
(
"OER SEQUENCE %s Decoding PHASE 2"
,
td
->
name
);
unconst
.
cptr
=
preamble
->
buffer
;
FREEMEM
(
unconst
.
uptr
);
preamble
->
buffer
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment