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
ecbb8ff3
Commit
ecbb8ff3
authored
Aug 06, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add const
parent
7e5ea1d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
libasn1parser/asn1p_ref.c
libasn1parser/asn1p_ref.c
+3
-3
libasn1parser/asn1p_ref.h
libasn1parser/asn1p_ref.h
+1
-1
No files found.
libasn1parser/asn1p_ref.c
View file @
ecbb8ff3
...
...
@@ -40,7 +40,7 @@ asn1p_ref_free(asn1p_ref_t *ref) {
}
static
enum
asn1p_ref_lex_type_e
asn1p_ref_name2lextype
(
char
*
name
)
{
asn1p_ref_name2lextype
(
c
onst
c
har
*
name
)
{
enum
asn1p_ref_lex_type_e
lex_type
;
int
has_lowercase
=
0
;
...
...
@@ -51,7 +51,7 @@ asn1p_ref_name2lextype(char *name) {
lex_type
=
RLT_Amplowercase
;
}
}
else
if
(
*
name
>=
'A'
&&
*
name
<=
'Z'
)
{
char
*
p
;
c
onst
c
har
*
p
;
for
(
p
=
name
;
*
p
;
p
++
)
{
if
(
*
p
>=
'a'
&&
*
p
<=
'z'
)
{
...
...
@@ -78,7 +78,7 @@ asn1p_ref_name2lextype(char *name) {
}
int
asn1p_ref_add_component
(
asn1p_ref_t
*
ref
,
char
*
name
,
enum
asn1p_ref_lex_type_e
lex_type
)
{
asn1p_ref_add_component
(
asn1p_ref_t
*
ref
,
c
onst
c
har
*
name
,
enum
asn1p_ref_lex_type_e
lex_type
)
{
if
(
!
ref
||
!
name
||
(
int
)
lex_type
<
RLT_UNKNOWN
||
lex_type
>=
RLT_MAX
)
{
...
...
libasn1parser/asn1p_ref.h
View file @
ecbb8ff3
...
...
@@ -58,6 +58,6 @@ asn1p_ref_t *asn1p_ref_clone(asn1p_ref_t *ref);
* -1/ENOMEM: Memory allocation failed
*/
int
asn1p_ref_add_component
(
asn1p_ref_t
*
,
char
*
name
,
enum
asn1p_ref_lex_type_e
);
c
onst
c
har
*
name
,
enum
asn1p_ref_lex_type_e
);
#endif
/* ASN1_PARSER_REFERENCE_H */
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