Fix prototypes.
authorGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Thu, 18 Feb 1993 05:14:43 +0000 (05:14 +0000)
committerGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Thu, 18 Feb 1993 05:14:43 +0000 (05:14 +0000)
v7/src/microcode/bchdmp.c
v7/src/microcode/tparam.c

index 9f3cf1fc0452ed89c2c3a9ea697d3f2eb97d4762..37d952bec7ea5822da705ccc4d37d2e212e50992 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: bchdmp.c,v 9.68 1993/02/06 05:27:26 gjr Exp $
+$Id: bchdmp.c,v 9.69 1993/02/18 05:14:43 gjr Exp $
 
 Copyright (c) 1987-1993 Massachusetts Institute of Technology
 
@@ -265,7 +265,13 @@ DEFUN (fasdump_exit, (length), long length)
 
 #ifdef HAVE_FTRUNCATE
   {
-    extern int EXFUN (ftruncate, (int, size_t));
+#ifndef _HPUX
+    /* HP-UX version < 9.0 has the wrong type in the prototype
+       in <unistd.h>
+     */
+
+    extern int EXFUN (ftruncate, (int, off_t));
+#endif
 
     ftruncate (dump_file, length);
     result = ((close (dump_file)) == 0);
@@ -277,7 +283,13 @@ DEFUN (fasdump_exit, (length), long length)
 #endif /* HAVE_FTRUNCATE */
 #if defined(HAVE_TRUNCATE) && !defined(HAVE_FTRUNCATE)
   {
-    extern int EXFUN (truncate, (CONST char *, size_t));
+#ifndef _HPUX
+    /* HP-UX version < 9.0 has the wrong type in the prototype
+       in <unistd.h>
+     */
+
+    extern int EXFUN (truncate, (CONST char *, off_t));
+#endif
 
     truncate (dump_file_name, length);
   }
index be133bda95404c5309772280d28ff21ef839357b..c3b8d73ea5bbdf2900ae3e5f84f21b2ef1cfe0e2 100644 (file)
@@ -111,9 +111,7 @@ what you give them.   Help stamp out software-hoarding!  */
 
 #include "ansidecl.h"
 
-#ifndef _BSD4_3
-extern char * EXFUN (tparam, (char *, char *, int, int, ...));
-#endif
+extern char * EXFUN (tparam, (char *, char *, int, int, int, int, int));
 extern char * EXFUN (tgoto, (char *, int, int));
 
 /* Assuming STRING is the value of a termcap string entry
@@ -168,7 +166,7 @@ tgoto (cm, hpos, vpos)
   return tparam1 (cm, tgoto_buf, 50, UP, BC, args);
 }
 
-static char *
+char *
 tparam1 (string, outstring, len, up, left, argp)
      char *string;
      char *outstring;