const fix

This commit is contained in:
Lev Walkin 2017-08-23 07:22:52 -07:00
parent f4b711a2a9
commit a45518f565
2 changed files with 2 additions and 2 deletions

View File

@ -356,7 +356,7 @@ asn1p_expr_free(asn1p_expr_t *expr) {
}
char *asn1p_tag2string(struct asn1p_type_tag_s *tag, char *buf) {
const char *asn1p_tag2string(const struct asn1p_type_tag_s *tag, char *buf) {
static char buf_stat[TAG2STRING_BUFFER_SIZE];
char *start;
char *end;

View File

@ -286,7 +286,7 @@ void asn1p_expr_set_source(asn1p_expr_t *, asn1p_module_t *, int lineno);
asn1p_paramlist_t *asn1p_get_namespace(asn1p_expr_t *);
#define TAG2STRING_BUFFER_SIZE 64 /* buf should be at least this big */
char *asn1p_tag2string(struct asn1p_type_tag_s *tag, char *opt_buf);
const char *asn1p_tag2string(const struct asn1p_type_tag_s *tag, char *opt_buf);
#define MODULE_NAME_OF(expr) \
((!expr) ? "" : \