diff options
author | Pavel Platto <hinidu@gmail.com> | 2014-06-17 12:41:55 +0300 |
---|---|---|
committer | Nicolas Hillegeer <nicolas@hillegeer.com> | 2014-07-14 21:14:39 +0200 |
commit | ed10eb6fa92989d5a3841bf225a38b524c910e2e (patch) | |
tree | cd53bca5fa808d52130ea6f420690d720478c574 /src | |
parent | f9710fba5243a87703e551052ae1fad1a787b015 (diff) | |
download | rneovim-ed10eb6fa92989d5a3841bf225a38b524c910e2e.tar.gz rneovim-ed10eb6fa92989d5a3841bf225a38b524c910e2e.tar.bz2 rneovim-ed10eb6fa92989d5a3841bf225a38b524c910e2e.zip |
Remove USE_TMPNAM
tmpnam() is deprecated.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/fileio.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index c1ba9c89ff..e9a1545846 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -5218,11 +5218,7 @@ vim_tempname ( int extra_char /* char to use in the name instead of '?' */ ) { -#ifdef USE_TMPNAM - char_u itmp[L_tmpnam]; /* use tmpnam() */ -#else char_u itmp[TEMPNAMELEN]; -#endif #ifdef TEMPDIRNAMES static char *(tempdirs[]) = {TEMPDIRNAMES}; @@ -5266,15 +5262,6 @@ vim_tempname ( #else /* TEMPDIRNAMES */ - -# ifdef USE_TMPNAM - char_u *p; - - /* tmpnam() will make its own name */ - p = tmpnam((char *)itmp); - if (p == NULL || *p == NUL) - return NULL; -# else char_u *p; STRCPY(itmp, TEMPNAME); @@ -5282,7 +5269,6 @@ vim_tempname ( *p = extra_char; if (mktemp((char *)itmp) == NULL) return NULL; -# endif return vim_strsave(itmp); #endif /* TEMPDIRNAMES */ |