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
2d824a69
Commit
2d824a69
authored
Oct 14, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix type
parent
ace43a3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
skeletons/OBJECT_IDENTIFIER.c
skeletons/OBJECT_IDENTIFIER.c
+3
-6
skeletons/RELATIVE-OID.c
skeletons/RELATIVE-OID.c
+0
-2
No files found.
skeletons/OBJECT_IDENTIFIER.c
View file @
2d824a69
...
...
@@ -370,7 +370,7 @@ OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *st, const asn_oid_arc_t *arcs,
size_t
arc_slots
)
{
uint8_t
*
buf
;
uint8_t
*
bp
;
size_t
wrote
;
s
s
ize_t
wrote
;
asn_oid_arc_t
arc0
;
asn_oid_arc_t
arc1
;
size_t
size
;
...
...
@@ -426,7 +426,7 @@ OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *st, const asn_oid_arc_t *arcs,
FREEMEM
(
buf
);
return
-
1
;
}
assert
(
wrote
<=
size
);
assert
(
(
size_t
)
wrote
<=
size
);
bp
+=
wrote
;
size
-=
wrote
;
...
...
@@ -436,14 +436,11 @@ OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *st, const asn_oid_arc_t *arcs,
FREEMEM
(
buf
);
return
-
1
;
}
assert
(
wrote
<=
size
);
assert
(
(
size_t
)
wrote
<=
size
);
bp
+=
wrote
;
size
-=
wrote
;
assert
(
wrote
<=
size
);
}
assert
(
size
>=
0
);
/*
* Replace buffer.
*/
...
...
skeletons/RELATIVE-OID.c
View file @
2d824a69
...
...
@@ -257,8 +257,6 @@ RELATIVE_OID_set_arcs(RELATIVE_OID_t *st, const asn_oid_arc_t *arcs,
size
-=
wrote
;
}
assert
(
size
>=
0
);
/*
* Replace buffer.
*/
...
...
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