From: compudj Date: Fri, 2 Dec 2005 21:59:17 +0000 (+0000) Subject: genevent fix X-Git-Tag: v0.12.20~2125 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c611872c743c4676a01a99d4c7bd59a666213c5b;p=lttv.git genevent fix git-svn-id: http://ltt.polymtl.ca/svn@1364 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/genevent-new/genevent.c b/genevent-new/genevent.c index 22ad5c4c..c1c69c47 100644 --- a/genevent-new/genevent.c +++ b/genevent-new/genevent.c @@ -151,7 +151,7 @@ int print_type(type_descriptor_t * td, FILE *fd, unsigned int tabs, fprintf(fd, "%s", floatOutputTypes[getSizeindex(td->size)]); break; case POINTER: - fprintf(fd, "void *"); + fprintf(fd, "const void *"); break; case LONG: fprintf(fd, "long"); @@ -259,7 +259,7 @@ int print_arg(type_descriptor_t * td, FILE *fd, unsigned int tabs, fprintf(fd, " %s", field_name); break; case POINTER: - fprintf(fd, "void *"); + fprintf(fd, "const void *"); fprintf(fd, " %s", field_name); break; case LONG: @@ -696,7 +696,7 @@ int print_type_write(type_descriptor_t * td, FILE *fd, unsigned int tabs, case SEQUENCE: print_tabs(tabs, fd); fprintf(fd, - "lttng_write_%s(buffer, to_base, to, from, len, &%s%s)", + "lttng_write_sequence%s(buffer, to_base, to, from, len, &%s%s)", basename, obj_prefix, field_name); break; case STRUCT: