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
71191ba9
Commit
71191ba9
authored
7 years ago
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix warnings
parent
fc89b9d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
skeletons/BIT_STRING_oer.c
skeletons/BIT_STRING_oer.c
+1
-2
skeletons/constr_CHOICE_oer.c
skeletons/constr_CHOICE_oer.c
+3
-0
skeletons/constr_SET_OF_oer.c
skeletons/constr_SET_OF_oer.c
+1
-1
No files found.
skeletons/BIT_STRING_oer.c
View file @
71191ba9
...
...
@@ -95,7 +95,6 @@ BIT_STRING_encode_oer(asn_TYPE_descriptor_t *td,
const
asn_oer_constraints_t
*
cts
=
constraints
?
constraints
:
td
->
oer_constraints
;
ssize_t
ct_size
=
cts
?
cts
->
size
:
-
1
;
size_t
effective_size
;
size_t
trailing_zeros
=
0
;
int
fix_last_byte
=
0
;
...
...
@@ -122,7 +121,7 @@ BIT_STRING_encode_oer(asn_TYPE_descriptor_t *td,
trailing_zeros
=
ct_bytes
-
st
->
size
;
/* Allow larger constraint */
}
else
{
uint8_t
ub
=
st
->
bits_unused
&
7
;
size_t
len_len
=
oer_serialize_length
(
1
+
st
->
size
,
cb
,
app_key
);
s
s
ize_t
len_len
=
oer_serialize_length
(
1
+
st
->
size
,
cb
,
app_key
);
if
(
len_len
<
0
)
ASN__ENCODE_FAILED
;
if
(
cb
(
&
ub
,
1
,
app_key
)
<
0
)
{
ASN__ENCODE_FAILED
;
...
...
This diff is collapsed.
Click to expand it.
skeletons/constr_CHOICE_oer.c
View file @
71191ba9
...
...
@@ -134,6 +134,8 @@ CHOICE_decode_oer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
asn_CHOICE_specifics_t
*
specs
=
(
asn_CHOICE_specifics_t
*
)
td
->
specifics
;
asn_TYPE_member_t
*
elements
=
td
->
elements
;
(
void
)
specs
;
/*
* Parts of the structure being constructed.
*/
...
...
@@ -319,6 +321,7 @@ CHOICE_encode_oer(asn_TYPE_descriptor_t *td,
asn_enc_rval_t
er
;
(
void
)
constraints
;
(
void
)
specs
;
if
(
!
sptr
)
ASN__ENCODE_FAILED
;
...
...
This diff is collapsed.
Click to expand it.
skeletons/constr_SET_OF_oer.c
View file @
71191ba9
...
...
@@ -233,7 +233,7 @@ SET_OF_encode_oer(asn_TYPE_descriptor_t *td,
ssize_t
qty_len
;
asn_TYPE_member_t
*
elm
;
asn_anonymous_set_
*
list
;
size_
t
n
;
in
t
n
;
(
void
)
constraints
;
...
...
This diff is collapsed.
Click to expand it.
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