[vlc-commits] test/keystore: use vlc_mkstemp()

Rémi Denis-Courmont git at videolan.org
Thu Apr 21 23:18:00 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Apr 22 00:13:30 2016 +0300| [858bd2e46b81277b849a1b0184599b086e51fde1] | committer: Rémi Denis-Courmont

test/keystore: use vlc_mkstemp()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=858bd2e46b81277b849a1b0184599b086e51fde1
---

 test/modules/keystore/test.c |    2 +-
 test/src/misc/keystore.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/modules/keystore/test.c b/test/modules/keystore/test.c
index ad8105d..d7ce428 100644
--- a/test/modules/keystore/test.c
+++ b/test/modules/keystore/test.c
@@ -319,7 +319,7 @@ main(int i_argc, char *ppsz_argv[])
 
             if (strcmp(psz_module, "file") == 0)
             {
-                assert((i_tmp_fd = mkstemp(psz_tmp_path)) != -1);
+                assert((i_tmp_fd = vlc_mkstemp(psz_tmp_path)) != -1);
                 printf("plaintext tmp file: '%s'\n", psz_tmp_path);
                 assert(asprintf(&ppsz_vlc_argv[1],
                        "--keystore-file=%s", psz_tmp_path) != -1);
diff --git a/test/src/misc/keystore.c b/test/src/misc/keystore.c
index 313adfd..a59f6f4 100644
--- a/test/src/misc/keystore.c
+++ b/test/src/misc/keystore.c
@@ -306,7 +306,7 @@ main(void)
     printf("creating tmp plaintext keystore file\n");
     char psz_tmp_path[] = "/tmp/libvlc_XXXXXX";
     int i_tmp_fd = -1;
-    i_tmp_fd = mkstemp(psz_tmp_path);
+    i_tmp_fd = vlc_mkstemp(psz_tmp_path);
     assert(i_tmp_fd != -1);
 
     int i_vlc_argc = 4;



More information about the vlc-commits mailing list