X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Fsequence.c;h=4967182821d74a031fb7c4e5de6c51d18352cd4d;hp=f6025af61b3470fdda7c43ff2e8feefbdfa373e1;hb=be85c1c7633af07e35db7b415d6ee8447c30e80a;hpb=d65d8abbc711906be828fce0a57df1be95b7ccf0 diff --git a/types/sequence.c b/types/sequence.c index f6025af6..49671828 100644 --- a/types/sequence.c +++ b/types/sequence.c @@ -19,6 +19,10 @@ #include #include +#ifndef max +#define max(a, b) ((a) < (b) ? (b) : (a)) +#endif + void sequence_copy(struct stream_pos *dest, const struct format *fdest, struct stream_pos *src, const struct format *fsrc, const struct type_class *type_class) @@ -82,7 +86,7 @@ sequence_type_new(const char *name, struct type_class_integer *len_class, type_class->ref = 1; if (type_class->name) { - ret = ctf_register_type(type_class); + ret = register_type(type_class); if (ret) goto error_register; }