From 23ab37cb825444178a44558bcb3b25484a7826c4 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Mon, 5 Dec 2011 14:13:21 +0000 Subject: [PATCH] Fix style(9) issues from r228270. Approved by: nwhitehorn (mentor) --- etc/devd/apple.conf | 2 +- sys/powerpc/powermac/pmu.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/devd/apple.conf b/etc/devd/apple.conf index 275d7378f884..26cbbb850151 100644 --- a/etc/devd/apple.conf +++ b/etc/devd/apple.conf @@ -11,7 +11,7 @@ notify 0 { }; -# Keyboard power key +# PowerBook and iBook lid close. notify 0 { match "system" "PMU"; match "subsystem" "lid"; diff --git a/sys/powerpc/powermac/pmu.c b/sys/powerpc/powermac/pmu.c index ebadbefec9a0..97770047f5fc 100644 --- a/sys/powerpc/powermac/pmu.c +++ b/sys/powerpc/powermac/pmu.c @@ -702,14 +702,14 @@ pmu_intr(void *arg) len - 3,&resp[3]); } if (resp[1] & PMU_INT_ENVIRONMENT) { - // if the lid was just closed, notify devd. + /* if the lid was just closed, notify devd. */ if ((resp[2] & PMU_ENV_LID_CLOSED) && (!sc->lid_closed)) { sc->lid_closed = 1; if (devctl_process_running()) devctl_notify("PMU", "lid", "close", NULL); } else if (!(resp[2] & PMU_ENV_LID_CLOSED) && (sc->lid_closed)) { - // if the lid was just opened, notify devd. + /* if the lid was just opened, notify devd. */ if (devctl_process_running()) devctl_notify("PMU", "lid", "open", NULL); sc->lid_closed = 0;