summaryrefslogtreecommitdiff
path: root/lib/parser_aux.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parser_aux.h')
-rw-r--r--lib/parser_aux.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/lib/parser_aux.h b/lib/parser_aux.h
index 55d9061..10b864b 100644
--- a/lib/parser_aux.h
+++ b/lib/parser_aux.h
@@ -52,19 +52,12 @@ void _asn1_delete_list (void);
void _asn1_delete_list_and_nodes (void);
-#define LTOSTR_MAX_SIZE 20
-char *_asn1_ltostr (long v, char *str);
+/* Max 64-bit integer length is 20 chars + 1 for sign + 1 for null termination */
+#define LTOSTR_MAX_SIZE 22
+char *_asn1_ltostr (long v, char str[LTOSTR_MAX_SIZE]);
asn1_node _asn1_find_up (asn1_node node);
-inline static asn1_node _asn1_get_up(asn1_node node)
-{
- if (node && node->up)
- return node->up;
- else
- return _asn1_find_up(node);
-}
-
int _asn1_change_integer_value (asn1_node node);
int _asn1_expand_object_id (asn1_node node);
@@ -107,10 +100,7 @@ _asn1_set_down (asn1_node node, asn1_node down)
return node;
node->down = down;
if (down)
- {
- down->left = node;
- down->up = node;
- }
+ down->left = node;
return node;
}