From: compudj Date: Fri, 2 Dec 2005 22:46:56 +0000 (+0000) Subject: genevent fix X-Git-Tag: v0.12.20~2122 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8c9e90761018e38fbebdf080b9f06afbf17f1ecd;p=lttv.git genevent fix git-svn-id: http://ltt.polymtl.ca/svn@1367 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/genevent-new/genevent.c b/genevent-new/genevent.c index a489165e..b79e4a39 100644 --- a/genevent-new/genevent.c +++ b/genevent-new/genevent.c @@ -453,6 +453,7 @@ int print_type_declaration(type_descriptor_t * td, FILE *fd, unsigned int tabs, fd, tabs, basename, "")) return 1; fprintf(fd, " len;\n"); print_tabs(1, fd); + fprintf(fd, "const "); if(print_type(((field_t*)td->fields.array[1])->type, fd, tabs, basename, "")) return 1; fprintf(fd, " *array;\n");