aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1parser/expr-h.pl
diff options
context:
space:
mode:
Diffstat (limited to 'libasn1parser/expr-h.pl')
-rwxr-xr-xlibasn1parser/expr-h.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/libasn1parser/expr-h.pl b/libasn1parser/expr-h.pl
index 27f4b9c4..99520b6b 100755
--- a/libasn1parser/expr-h.pl
+++ b/libasn1parser/expr-h.pl
@@ -42,11 +42,11 @@ print<<EOM;
/*
* Convert the ASN.1 expression type back into the string representation.
*/
-#define ASN_EXPR_TYPE2STR(type) _asn_expr_type2str(type)
+#define ASN_EXPR_TYPE2STR(type) _asn1p_expr_type2string(type)
-static char * __attribute__((unused))
-_asn_expr_type2str(size_t type) {
- assert((ssize_t)type >= 0);
+static inline char * __attribute__((unused))
+_asn1p_expr_type2string(asn1p_expr_type_e type) {
+ assert((signed int)type >= 0);
if(type < sizeof(asn1p_expr_type2str)/sizeof(asn1p_expr_type2str[0]))
return asn1p_expr_type2str[type];
return NULL;