#include <stdio.h>
#include <sys/utsname.h>
#include <babeltrace/compat/limits.h>
+#include <babeltrace/compat/stdio.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
goto result;
}
- execl(parser_path, "ctf-parser-test", NULL);
+ execl(parser_path, "ctf-parser-test", (char *) NULL);
perror("# Could not launch the ctf metadata parser process");
exit(-1);
}
rewind(metadata_fp);
/* Output the metadata and parser output as diagnostic */
- while (getline(&line, &len, metadata_fp) > 0) {
+ while (bt_getline(&line, &len, metadata_fp) > 0) {
diag("%s", line);
}
rewind(parser_output_fp);
- while (getline(&line, &len, parser_output_fp) > 0) {
+ while (bt_getline(&line, &len, parser_output_fp) > 0) {
diag("%s", line);
}
goto result;
}
- execl(parser_path, "babeltrace", trace_path, NULL);
+ execl(parser_path, "babeltrace", trace_path, (char *) NULL);
perror("# Could not launch the babeltrace process");
exit(-1);
}
diag("malloc error");
}
rewind(babeltrace_output_fp);
- while (getline(&line, &len, babeltrace_output_fp) > 0) {
+ while (bt_getline(&line, &len, babeltrace_output_fp) > 0) {
diag("%s", line);
}