Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asn1c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gaoridong
asn1c
Commits
e972d935
Commit
e972d935
authored
20 years ago
by
Lev Walkin
Browse files
Options
Downloads
Patches
Plain Diff
unsigned
parent
eb805819
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libasn1parser/asn1p_constr.c
+2
-2
2 additions, 2 deletions
libasn1parser/asn1p_constr.c
libasn1parser/asn1p_constr.h
+2
-2
2 additions, 2 deletions
libasn1parser/asn1p_constr.h
with
4 additions
and
4 deletions
libasn1parser/asn1p_constr.c
+
2
−
2
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
]));
...
...
This diff is collapsed.
Click to expand it.
libasn1parser/asn1p_constr.h
+
2
−
2
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 */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment