summaryrefslogtreecommitdiff
path: root/Build/source/texk/seetexk/tempfile.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-17 16:38:00 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-17 16:38:00 +0000
commitef6828db3f74d9c0ad7e0d9dff1e849a39bf90ff (patch)
tree2898b7310974bad5608830db80c53322e1fbff53 /Build/source/texk/seetexk/tempfile.c
parent69b31bc5a79ddff0b4b89009022ab9f3767069a9 (diff)
enable compiler warnings
use ANSI C functions prototypes avoid compiler warnings git-svn-id: svn://tug.org/texlive/trunk@13782 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/seetexk/tempfile.c')
-rw-r--r--Build/source/texk/seetexk/tempfile.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/Build/source/texk/seetexk/tempfile.c b/Build/source/texk/seetexk/tempfile.c
index 8d55c8bab52..954a6e56d58 100644
--- a/Build/source/texk/seetexk/tempfile.c
+++ b/Build/source/texk/seetexk/tempfile.c
@@ -5,10 +5,6 @@
* so long as this copyright notice remains intact.
*/
-#ifndef lint
-static char rcsid[] = "$Header: /usr/src/local/tex/local/mctex/lib/RCS/tempfile.c,v 3.1 89/08/22 21:45:20 chris Exp $";
-#endif
-
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -16,6 +12,10 @@ static char rcsid[] = "$Header: /usr/src/local/tex/local/mctex/lib/RCS/tempfile.
#include <stdio.h>
#include <sys/types.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#ifdef _AMIGA
#define getpid() 42
#endif /* _AMIGA */
@@ -29,6 +29,8 @@ char *getenv();
#endif
+#include "tempfile.h"
+
#ifdef KPATHSEA
#include <kpathsea/c-fopen.h>
#else
@@ -73,8 +75,7 @@ RemoveTempFile(void)
* then exit with the same status, or send itself the same signal.
*/
int
-MakeRWTempFile(name)
- register char *name;
+MakeRWTempFile(char *name)
{
register int tf, n;
int mypid, tries;