summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorMartin Natano <natano@cvs.openbsd.org>2017-06-16 06:46:55 +0000
committerMartin Natano <natano@cvs.openbsd.org>2017-06-16 06:46:55 +0000
commitb95978f69c9124aba17e6fd2d36126db76cc2ed0 (patch)
tree3a88fd3b7cb401af6ce92ece8faa090572c402cd /sbin
parent98e42db4c1ebf8438ef4e9c2645c1a0d275686ad (diff)
s/CPU_LIDSUSPEND/CPU_LIDACTION/
ok mlarkin
Diffstat (limited to 'sbin')
-rw-r--r--sbin/init/init.c4
-rw-r--r--sbin/reboot/reboot.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c
index 1c0e4ce5e73..f3d84463815 100644
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init.c,v 1.64 2017/05/03 09:51:39 mestre Exp $ */
+/* $OpenBSD: init.c,v 1.65 2017/06/16 06:46:54 natano Exp $ */
/* $NetBSD: init.c,v 1.22 1996/05/15 23:29:33 jtc Exp $ */
/*-
@@ -1325,7 +1325,7 @@ f_nice_death(void)
static const int death_sigs[3] = { SIGHUP, SIGTERM, SIGKILL };
int status;
-#ifdef CPU_LIDSUSPEND
+#ifdef CPU_LIDACTION
int mib[] = {CTL_MACHDEP, CPU_LIDACTION};
int lidaction = 0;
diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c
index 8f1f524d72c..dd85d0d9c8c 100644
--- a/sbin/reboot/reboot.c
+++ b/sbin/reboot/reboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: reboot.c,v 1.36 2017/03/02 10:38:09 natano Exp $ */
+/* $OpenBSD: reboot.c,v 1.37 2017/06/16 06:46:54 natano Exp $ */
/* $NetBSD: reboot.c,v 1.8 1995/10/05 05:36:22 mycroft Exp $ */
/*
@@ -112,7 +112,7 @@ main(int argc, char *argv[])
if (geteuid())
errx(1, "%s", strerror(EPERM));
-#ifdef CPU_LIDSUSPEND
+#ifdef CPU_LIDACTION
if (howto & RB_POWERDOWN) {
/* Disable suspending on laptop lid close */
int mib[] = {CTL_MACHDEP, CPU_LIDACTION};
@@ -122,7 +122,7 @@ main(int argc, char *argv[])
sizeof(lidaction)) == -1 && errno != EOPNOTSUPP)
warn("sysctl");
}
-#endif /* CPU_LIDSUSPEND */
+#endif /* CPU_LIDACTION */
if (qflag) {
reboot(howto);