From d3cf54149293d1db8755a2ac12612261157fd8dc Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 14 Feb 2008 19:43:24 -0500 Subject: [PATCH] rtcwake: fix typo SATE -> STATE Signed-off-by: Mike Frysinger --- sys-utils/rtcwake.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys-utils/rtcwake.c b/sys-utils/rtcwake.c index a4fd8331..16e21a04 100644 --- a/sys-utils/rtcwake.c +++ b/sys-utils/rtcwake.c @@ -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; } -- 2.39.5