dtdbcache: Remove old code in comments
Patch from Aaron W. Hsu <arcfide@sacrideo.us>
This commit is contained in:
parent
04b366b09c
commit
80f456e3b5
|
|
@ -689,16 +689,6 @@ write_db(DtDtsMMHeader *header, void *index, int size, const char *CacheFile)
|
|||
sprintf(tmpfile, "%s/%sXXXXXX", _DTDTSMMTEMPDIR, _DTDTSMMTEMPFILE);
|
||||
fd = mkstemp(tmpfile);
|
||||
|
||||
/*
|
||||
tmpfile = (char *)malloc(sizeof(_DTDTSMMTEMPDIR) +
|
||||
sizeof(_DTDTSMMTEMPFILE) + L_tmpnam + 3);
|
||||
|
||||
tmpnam(tmpnam_buf);
|
||||
sprintf(tmpfile, "%s/%s%s", _DTDTSMMTEMPDIR, _DTDTSMMTEMPFILE,
|
||||
basename(tmpnam_buf));
|
||||
|
||||
fd = open(tmpfile, O_RDWR|O_CREAT, 0600);
|
||||
*/
|
||||
umask(cmask);
|
||||
|
||||
if(fd == -1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue