]> code.citadel.org Git - citadel.git/blobdiff - citadel/tools.c
* Removed our customized tmpnam() and tmpfile() because I stupidly
[citadel.git] / citadel / tools.c
index c82128df7170f49b8508fedc504019e760c0e401..17fcb225d64cd1594f254466df7ec0961464e22d 100644 (file)
@@ -546,38 +546,6 @@ void urlesc(char *outbuf, char *strbuf)
 }
 
 
-/*
- * Citadelian replacement for tmpnam()
- */
-char *CtdlTempFileName(char *prefix1, int prefix2) {
-       static int seq = 0;
-       static char buf[SIZ];
-
-       sprintf(buf, "/tmp/Citadel-%s-%d-%04x-%04x",
-               prefix1,
-               prefix2,
-               (int)getpid(),
-               ++seq
-       );
-       
-       return(buf);
-}
-
-
-/*
- * Citadelian replacement for tmpfile()
- */
-FILE *CtdlTempFile(void) {
-       char filename[SIZ];
-       FILE *fp;
-
-       strcpy(filename, tmpnam(NULL));
-       fp = fopen(filename, "w+b");
-       unlink(filename);
-       return(fp);
-}
-
-
 /*
  * bmstrstr() is a variant of strstr() that uses the Boyer-Moore search
  * algorithm, and can use any caller-supplied string compare function whose