From a17ca20cbc61acd8d47a603e185d62e84c9412f7 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 18 Nov 1995 04:37:23 +0000 Subject: [PATCH] Fixed the types of apm_default_resume() and apm_default_suspend(). Added prototypes. --- sys/i386/apm/apm.c | 10 +++++++--- sys/i386/bios/apm.c | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/sys/i386/apm/apm.c b/sys/i386/apm/apm.c index 6d85172c5316..6fa6b874576c 100644 --- a/sys/i386/apm/apm.c +++ b/sys/i386/apm/apm.c @@ -13,7 +13,7 @@ * * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * - * $Id: apm.c,v 1.13 1995/07/16 10:11:30 bde Exp $ + * $Id: apm.c,v 1.14 1995/10/28 15:38:14 phk Exp $ */ #include "apm.h" @@ -60,6 +60,10 @@ #include #endif /* MACH_KERNEL */ +extern int apm_display_off __P((void)); +extern int apm_int __P((u_long *eax, u_long *ebx, u_long *ecx)); +extern void apm_resume __P((void)); + /* static data */ struct apm_softc { int initialized, active, halt_cpu; @@ -410,7 +414,7 @@ static struct timeval suspend_time; static struct timeval diff_time; static int -apm_default_resume(struct apm_softc *sc) +apm_default_resume(void *arg) { #ifdef __FreeBSD__ int pl; @@ -437,7 +441,7 @@ apm_default_resume(struct apm_softc *sc) } static int -apm_default_suspend(void) +apm_default_suspend(void *arg) { #ifdef __FreeBSD__ int pl; diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c index 6d85172c5316..6fa6b874576c 100644 --- a/sys/i386/bios/apm.c +++ b/sys/i386/bios/apm.c @@ -13,7 +13,7 @@ * * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * - * $Id: apm.c,v 1.13 1995/07/16 10:11:30 bde Exp $ + * $Id: apm.c,v 1.14 1995/10/28 15:38:14 phk Exp $ */ #include "apm.h" @@ -60,6 +60,10 @@ #include #endif /* MACH_KERNEL */ +extern int apm_display_off __P((void)); +extern int apm_int __P((u_long *eax, u_long *ebx, u_long *ecx)); +extern void apm_resume __P((void)); + /* static data */ struct apm_softc { int initialized, active, halt_cpu; @@ -410,7 +414,7 @@ static struct timeval suspend_time; static struct timeval diff_time; static int -apm_default_resume(struct apm_softc *sc) +apm_default_resume(void *arg) { #ifdef __FreeBSD__ int pl; @@ -437,7 +441,7 @@ apm_default_resume(struct apm_softc *sc) } static int -apm_default_suspend(void) +apm_default_suspend(void *arg) { #ifdef __FreeBSD__ int pl;