mirror of https://gerrit.osmocom.org/asn1c
const fix
This commit is contained in:
parent
f4b711a2a9
commit
a45518f565
|
@ -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];
|
static char buf_stat[TAG2STRING_BUFFER_SIZE];
|
||||||
char *start;
|
char *start;
|
||||||
char *end;
|
char *end;
|
||||||
|
|
|
@ -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 *);
|
asn1p_paramlist_t *asn1p_get_namespace(asn1p_expr_t *);
|
||||||
|
|
||||||
#define TAG2STRING_BUFFER_SIZE 64 /* buf should be at least this big */
|
#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) \
|
#define MODULE_NAME_OF(expr) \
|
||||||
((!expr) ? "" : \
|
((!expr) ? "" : \
|
||||||
|
|
Loading…
Reference in New Issue