projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Silence missing sentinel warnings on GCC 4
[babeltrace.git]
/
tests
/
lib
/
test_ctf_writer.c
diff --git
a/tests/lib/test_ctf_writer.c
b/tests/lib/test_ctf_writer.c
index e0236a380e3aa563762354d144ea20096496e0dc..ee979f0b1b3f5a88c783752f478d936b43a42f63 100644
(file)
--- a/
tests/lib/test_ctf_writer.c
+++ b/
tests/lib/test_ctf_writer.c
@@
-31,6
+31,7
@@
#include <stdio.h>
#include <sys/utsname.h>
#include <babeltrace/compat/limits.h>
#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>
#include <string.h>
#include <assert.h>
#include <unistd.h>
@@
-93,7
+94,7
@@
void validate_metadata(char *parser_path, char *metadata_path)
goto result;
}
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);
}
perror("# Could not launch the ctf metadata parser process");
exit(-1);
}
@@
-127,12
+128,12
@@
result:
rewind(metadata_fp);
/* Output the metadata and parser output as diagnostic */
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);
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);
}
diag("%s", line);
}
@@
-200,7
+201,7
@@
void validate_trace(char *parser_path, char *trace_path)
goto result;
}
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);
}
perror("# Could not launch the babeltrace process");
exit(-1);
}
@@
-224,7
+225,7
@@
result:
diag("malloc error");
}
rewind(babeltrace_output_fp);
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);
}
diag("%s", line);
}
This page took
0.023658 seconds
and
4
git commands to generate.