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
e972d935
Commit
e972d935
authored
Sep 05, 2004
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unsigned
parent
eb805819
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
libasn1parser/asn1p_constr.c
libasn1parser/asn1p_constr.c
+2
-2
libasn1parser/asn1p_constr.h
libasn1parser/asn1p_constr.h
+2
-2
No files found.
libasn1parser/asn1p_constr.c
View file @
e972d935
...
...
@@ -55,7 +55,7 @@ asn1p_constraint_clone(asn1p_constraint_t *src) {
clone
=
asn1p_constraint_new
(
src
->
_lineno
);
if
(
clone
)
{
int
i
;
unsigned
int
i
;
clone
->
type
=
src
->
type
;
clone
->
presence
=
src
->
presence
;
...
...
@@ -92,7 +92,7 @@ asn1p_constraint_insert(asn1p_constraint_t *into, asn1p_constraint_t *what) {
* Make sure there's enough space to add an element.
*/
if
(
into
->
el_count
==
into
->
el_size
)
{
int
newsize
=
into
->
el_size
?
into
->
el_size
<<
2
:
4
;
unsigned
int
newsize
=
into
->
el_size
?
into
->
el_size
<<
2
:
4
;
void
*
p
;
p
=
realloc
(
into
->
elements
,
newsize
*
sizeof
(
into
->
elements
[
0
]));
...
...
libasn1parser/asn1p_constr.h
View file @
e972d935
...
...
@@ -53,8 +53,8 @@ typedef struct asn1p_constraint_s {
* A collection of constraint elements.
*/
struct
asn1p_constraint_s
**
elements
;
int
el_count
;
/* Number of meaningful elements */
int
el_size
;
/* Size of the allocated (elements) */
unsigned
int
el_count
;
/* Number of meaningful elements */
unsigned
int
el_size
;
/* Size of the allocated (elements) */
int
_lineno
;
/* Position in a source file */
int
_compile_mark
;
/* Marker used by the compiler */
...
...
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