diff options
author | Lev Walkin <vlm@lionet.info> | 2017-08-06 23:41:11 -0700 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2017-08-06 23:41:11 -0700 |
commit | 62d95d2ef469e8944679acbf08b126ec1fb87978 (patch) | |
tree | 115818127519e98f3622d221f2496dbcd9d5f678 /libasn1fix | |
parent | 645d2de9c34dc8cabbccf1bd277875b520dd8693 (diff) |
rm warnings
Diffstat (limited to 'libasn1fix')
-rw-r--r-- | libasn1fix/asn1fix_cws.c | 3 | ||||
-rw-r--r-- | libasn1fix/asn1fix_misc.c | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/libasn1fix/asn1fix_cws.c b/libasn1fix/asn1fix_cws.c index de2d2406..ea0df20b 100644 --- a/libasn1fix/asn1fix_cws.c +++ b/libasn1fix/asn1fix_cws.c @@ -371,7 +371,6 @@ _asn1f_assign_cell_value(arg_t *arg, struct asn1p_ioc_row_s *row, struct asn1p_ioc_cell_s *cell, const uint8_t *buf, const uint8_t *bend) { asn1p_expr_t *expr = (asn1p_expr_t *)NULL; - int idLength; char *p; int new_ref = 1; asn1p_t *asn; @@ -482,7 +481,7 @@ _asn1f_assign_cell_value(arg_t *arg, struct asn1p_ioc_row_s *row, cell->value = expr; cell->new_ref = new_ref; - idLength = strlen(expr->Identifier); + size_t idLength = strlen(expr->Identifier); if(row->max_identifier_length < idLength) row->max_identifier_length = idLength; diff --git a/libasn1fix/asn1fix_misc.c b/libasn1fix/asn1fix_misc.c index 23ae24fc..283ed531 100644 --- a/libasn1fix/asn1fix_misc.c +++ b/libasn1fix/asn1fix_misc.c @@ -129,12 +129,11 @@ asn1f_printable_value(asn1p_value_t *v) { asn1p_ref_t *ref; size_t reflen; char *ptr; - int i; assert(v->value.reference); ref = v->value.reference; reflen = ref->comp_count; /* Number of dots */ - for(i = 0; i < ref->comp_count; i++) + for(size_t i = 0; i < ref->comp_count; i++) reflen += strlen(ref->components[i].name); /* * Make sure we have a buffer of this size. @@ -145,7 +144,7 @@ asn1f_printable_value(asn1p_value_t *v) { * Fill-up the buffer. */ ptr = managedptr; - for(i = 0; i < ref->comp_count; i++) { + for(size_t i = 0; i < ref->comp_count; i++) { char *nc; if(i) *ptr++ = '.'; for(nc = ref->components[i].name; *nc; nc++) |