Rearranged whitespace (and comments) in all the code!
[mmh] / sbr / m_scratch.c
index 353da56..a929419 100644 (file)
@@ -1,9 +1,6 @@
-
 /*
  * m_scratch.c -- construct a scratch 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.
 char *
 m_scratch (char *file, char *template)
 {
-    char *cp;
-    static char buffer[BUFSIZ], tmpfil[BUFSIZ];
+       char *cp;
+       static char buffer[BUFSIZ], tmpfil[BUFSIZ];
 
-    snprintf (tmpfil, sizeof(tmpfil), "%sXXXXXX", template);
+       snprintf (tmpfil, sizeof(tmpfil), "%sXXXXXX", template);
 /*
-  Mkstemp work postponed until later -Doug
-#ifdef HAVE_MKSTEMP
-    mkstemp (tmpfil);
-#else
-*/
-    mktemp (tmpfil);
+ * Mkstemp work postponed until later -Doug
+ * #ifdef HAVE_MKSTEMP
+ *   mkstemp (tmpfil);
+ * #else
+ */
+       mktemp (tmpfil);
 /*
-#endif
-*/
-    /* nasty - this really means: if there is no '/' in the path */
-    if ((cp = r1bindex (file, '/')) == file)
-       strncpy (buffer, tmpfil, sizeof(buffer));
-    else
-       snprintf (buffer, sizeof(buffer), "%.*s%s", (int)(cp - file), file, tmpfil);
-    unlink (buffer);
+ * #endif
+ */
+       /* nasty - this really means: if there is no '/' in the path */
+       if ((cp = r1bindex (file, '/')) == file)
+               strncpy (buffer, tmpfil, sizeof(buffer));
+       else
+               snprintf (buffer, sizeof(buffer), "%.*s%s", (int)(cp - file), file, tmpfil);
+       unlink (buffer);
 
-    return buffer;
+       return buffer;
 }