From 80f456e3b558f7ceeb331585ccd9307f74a244c5 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Tue, 7 Aug 2012 16:56:11 -0600 Subject: [PATCH] dtdbcache: Remove old code in comments Patch from Aaron W. Hsu --- cde/lib/DtSvc/DtUtil1/MMDb.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cde/lib/DtSvc/DtUtil1/MMDb.c b/cde/lib/DtSvc/DtUtil1/MMDb.c index 7891340e..56387ad0 100644 --- a/cde/lib/DtSvc/DtUtil1/MMDb.c +++ b/cde/lib/DtSvc/DtUtil1/MMDb.c @@ -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) -- 2.25.1