Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos] / src / kernel / ao_power.c
index bead5944009d2c4207d802e689c8abbf1da2e049..8c490604decffcc9ed30cca213c841aeda9b0ca5 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -25,7 +26,7 @@ ao_power_register(struct ao_power *power)
 {
        if (power->registered)
                return;
-       power->registered = TRUE;
+       power->registered = true;
        if (tail) {
                tail->next = power;
                power->prev = tail;
@@ -43,7 +44,7 @@ ao_power_unregister(struct ao_power *power)
 {
        if (!power->registered)
                return;
-       power->registered = FALSE;
+       power->registered = false;
        if (power->prev)
                power->prev->next = power->next;
        else