test-fileio: replace mktemp with mkstemp to avoid warnings

This is a fairly useless thing to do but it makes the compilers
and analyzers shut up about the use of mktemp.
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2013-12-12 02:46:09 +01:00
parent d78bf250b0
commit d514feaa87
+6 -2
View File
@@ -41,7 +41,9 @@ static void test_parse_env_file(void) {
char **i;
unsigned k;
assert_se(mktemp(p));
fd = mkstemp(p);
assert_se(fd >= 0);
close(fd);
fd = mkostemp(t, O_CLOEXEC);
assert_se(fd >= 0);
@@ -152,7 +154,9 @@ static void test_parse_multiline_env_file(void) {
_cleanup_strv_free_ char **a = NULL, **b = NULL;
char **i;
assert_se(mktemp(p));
fd = mkstemp(p);
assert_se(fd >= 0);
close(fd);
fd = mkostemp(t, O_CLOEXEC);
assert_se(fd >= 0);