A litte trouble with declarations of boot() and panic() resolved. gcc-2.5.8
[unix-history] / sys / kern / subr_prf.c
index d691092..1378028 100644 (file)
@@ -31,7 +31,7 @@
  * SUCH DAMAGE.
  *
  *     from: @(#)subr_prf.c    7.30 (Berkeley) 6/29/91
  * SUCH DAMAGE.
  *
  *     from: @(#)subr_prf.c    7.30 (Berkeley) 6/29/91
- *     $Id: subr_prf.c,v 1.5 1993/11/13 02:25:32 davidg Exp $
+ *     $Id: subr_prf.c,v 1.6 1993/12/19 00:51:32 wollman Exp $
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -80,7 +80,6 @@ static void  logpri __P((int level));
 static void  putchar __P((int ch, int flags, struct tty *tp));
 static char *ksprintn __P((u_long num, int base, int *len));
 void  kprintf __P((const char *fmt, int flags, struct tty *tp, va_list));
 static void  putchar __P((int ch, int flags, struct tty *tp));
 static char *ksprintn __P((u_long num, int base, int *len));
 void  kprintf __P((const char *fmt, int flags, struct tty *tp, va_list));
-volatile void boot(int bootopt);
 
 /*
  * Variable panicstr contains argument to first call to panic; used
 
 /*
  * Variable panicstr contains argument to first call to panic; used
@@ -99,14 +98,8 @@ int msgbufmapped;
  * and then reboots.  If we are called twice, then we avoid trying to sync
  * the disks as this often leads to recursive panics.
  */
  * and then reboots.  If we are called twice, then we avoid trying to sync
  * the disks as this often leads to recursive panics.
  */
-#ifdef __STDC__
-volatile void
-panic(const char *msg)
-#else
 void
 void
-panic(msg)
-       char *msg;
-#endif
+panic(const char *msg)
 {
        int bootopt = RB_AUTOBOOT | RB_DUMP;
 
 {
        int bootopt = RB_AUTOBOOT | RB_DUMP;