genevent fix
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 2 Dec 2005 21:59:17 +0000 (21:59 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 2 Dec 2005 21:59:17 +0000 (21:59 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1364 04897980-b3bd-0310-b5e0-8ef037075253

genevent-new/genevent.c

index 22ad5c4c5c67eb0a8f0575994fb429aa1328748f..c1c69c47296ee676901e9c08f8a37b8483969297 100644 (file)
@@ -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:
This page took 0.024671 seconds and 4 git commands to generate.