X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=sbr%2Fm_tmpfil.c;h=c0a60bca624795609e8db66c42f5633efa4d69b5;hb=a485ed478abbd599d8c9aab48934e7a26733ecb1;hp=291d996606c0d5a742c33da09a4a64b9d9f3dd05;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b;p=mmh diff --git a/sbr/m_tmpfil.c b/sbr/m_tmpfil.c index 291d996..c0a60bc 100644 --- a/sbr/m_tmpfil.c +++ b/sbr/m_tmpfil.c @@ -15,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; }