summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi
diff options
context:
space:
mode:
authorphilip <philip@FreeBSD.org>2004-11-13 01:54:22 +0000
committerphilip <philip@FreeBSD.org>2004-11-13 01:54:22 +0000
commit39c457059214a40e8db77b3220582a0b47fb2843 (patch)
tree9a869a6b51d4b268b8b0c37d81beaf07653073fd /usr.sbin/acpi
parent985b7bf73694f0c18721dc1ee526f1c470f2fcd7 (diff)
downloadFreeBSD-src-39c457059214a40e8db77b3220582a0b47fb2843.zip
FreeBSD-src-39c457059214a40e8db77b3220582a0b47fb2843.tar.gz
With the addition of a proper prototype, this is now WARNS=6 clean.
Diffstat (limited to 'usr.sbin/acpi')
-rw-r--r--usr.sbin/acpi/acpiconf/Makefile1
-rw-r--r--usr.sbin/acpi/acpiconf/acpiconf.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/acpi/acpiconf/Makefile b/usr.sbin/acpi/acpiconf/Makefile
index 5f862a2..bb0df4b 100644
--- a/usr.sbin/acpi/acpiconf/Makefile
+++ b/usr.sbin/acpi/acpiconf/Makefile
@@ -3,5 +3,6 @@
PROG= acpiconf
MAN= acpiconf.8
+WARNS?= 6
.include <bsd.prog.mk>
diff --git a/usr.sbin/acpi/acpiconf/acpiconf.c b/usr.sbin/acpi/acpiconf/acpiconf.c
index 4500cbe..63e55a6 100644
--- a/usr.sbin/acpi/acpiconf/acpiconf.c
+++ b/usr.sbin/acpi/acpiconf/acpiconf.c
@@ -46,7 +46,7 @@
static int acpifd;
static int
-acpi_init()
+acpi_init(void)
{
acpifd = open(ACPIDEV, O_RDWR);
if (acpifd == -1){
OpenPOWER on IntegriCloud