Browse Source

test/keystore: use vlc_mkstemp()

pull/45/merge
Rémi Denis-Courmont 10 years ago
parent
commit
858bd2e46b
  1. 2
      test/modules/keystore/test.c
  2. 2
      test/src/misc/keystore.c

2
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);

2
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;

Loading…
Cancel
Save