From c611872c743c4676a01a99d4c7bd59a666213c5b Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 2 Dec 2005 21:59:17 +0000 Subject: [PATCH] genevent fix git-svn-id: http://ltt.polymtl.ca/svn@1364 04897980-b3bd-0310-b5e0-8ef037075253 --- genevent-new/genevent.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: -- 2.34.1