]> diplodocus.org Git - nmh/blobdiff - sbr/m_mktemp.c
sbr/m_mktemp.h: Move remaining prototypes from h/prototypes.h.
[nmh] / sbr / m_mktemp.c
index 15bee9394218a27da7b0a8130435234dd4cf5ae2..56810445734aec57b6d7e88231707e3b39f401f2 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * m_mktemp.c -- Construct a temporary file.
+/* m_mktemp.c -- Construct a temporary file.
  *
  * This code is Copyright (c) 2010, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -9,6 +8,7 @@
 #include <h/mh.h>
 #include <h/utils.h>
 #include <h/signals.h>
+#include "m_mktemp.h"
 
 static void register_for_removal(const char *);
 
@@ -229,7 +229,7 @@ m_mktemps(
 
 
 char *
-get_temp_dir()
+get_temp_dir(void)
 {
     /* Ignore envvars if we are setuid */
     if ((getuid()==geteuid()) && (getgid()==getegid())) {
@@ -320,7 +320,7 @@ m_unlink(const char *pathname) {
  * Remove all registered temporary files.
  */
 void
-remove_registered_files_atexit() {
+remove_registered_files_atexit(void) {
     unregister_for_removal(1);
 }