From: Mike Frysinger Date: Fri, 15 Feb 2008 00:43:24 +0000 (-0500) Subject: rtcwake: fix typo SATE -> STATE X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3cf54149293d1db8755a2ac12612261157fd8dc;p=util-linux rtcwake: fix typo SATE -> STATE Signed-off-by: Mike Frysinger --- 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; }