]> err.no Git - util-linux/commitdiff
rtcwake: fix typo SATE -> STATE
authorMike Frysinger <vapier@gentoo.org>
Fri, 15 Feb 2008 00:43:24 +0000 (19:43 -0500)
committerKarel Zak <kzak@redhat.com>
Fri, 15 Feb 2008 01:01:00 +0000 (02:01 +0100)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sys-utils/rtcwake.c

index a4fd83312536c8cc4d99c920ba7b7c37b1cbd7da..16e21a04f00f7997ea284f71824a534dcdac8941 100644 (file)
@@ -48,7 +48,7 @@ static char           *progname;
 
 #define VERSION_STRING         "rtcwake from " PACKAGE_STRING
 #define RTC_PATH               "/sys/class/rtc/%s/device/power/wakeup"
-#define SYS_POWER_SATE_PATH    "/sys/power/state"
+#define SYS_POWER_STATE_PATH   "/sys/power/state"
 #define ADJTIME_PATH           "/etc/adjtime"
 #define DEFAULT_DEVICE         "/dev/rtc0"
 #define DEFAULT_MODE           "suspend"
@@ -238,10 +238,10 @@ static int setup_alarm(int fd, time_t *wakeup)
 
 static void suspend_system(const char *suspend)
 {
-       FILE    *f = fopen(SYS_POWER_SATE_PATH, "w");
+       FILE    *f = fopen(SYS_POWER_STATE_PATH, "w");
 
        if (!f) {
-               perror(SYS_POWER_SATE_PATH);
+               perror(SYS_POWER_STATE_PATH);
                return;
        }