X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fm_tmpfil.c;h=c0a60bca624795609e8db66c42f5633efa4d69b5;hp=4382061fabeb14bc37f9686baf36fcefd87ef595;hb=a485ed478abbd599d8c9aab48934e7a26733ecb1;hpb=2f689a1cb907a5de04e6d39ffd217a69af3216c7 diff --git a/sbr/m_tmpfil.c b/sbr/m_tmpfil.c index 4382061..c0a60bc 100644 --- a/sbr/m_tmpfil.c +++ b/sbr/m_tmpfil.c @@ -1,8 +1,6 @@ /* * m_tmpfil.c -- construct a temporary file * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -17,18 +15,18 @@ char * m_tmpfil (char *template) { - static char tmpfil[BUFSIZ]; + static char tmpfil[BUFSIZ]; - snprintf (tmpfil, sizeof(tmpfil), "/tmp/%sXXXXXX", template); + snprintf (tmpfil, sizeof(tmpfil), "/tmp/%sXXXXXX", template); /* - Mkstemp work postponed until later -Doug -#ifdef HAVE_MKSTEMP - unlink(mkstemp(tmpfil)); -#else -*/ - unlink(mktemp(tmpfil)); + * Mkstemp work postponed until later -Doug + * #ifdef HAVE_MKSTEMP + * unlink(mkstemp(tmpfil)); + * #else + */ + unlink(mktemp(tmpfil)); /* -#endif -*/ - return tmpfil; + * #endif + */ + return tmpfil; }