From 1ddf9aa5ffc8dbb4ba290fa6a439b2d7681a0038 Mon Sep 17 00:00:00 2001 From: sandman Date: Wed, 26 Jun 2002 17:42:48 +0000 Subject: The embedix arm-linux-strip does not accept -s but --strip-all (weird) Fixed a RTC get time ioctl bug in opiealarm. --- diff --git a/core/opiealarm/Makefile b/core/opiealarm/Makefile index e988abf..f20d451 100644 --- a/core/opiealarm/Makefile +++ b/core/opiealarm/Makefile @@ -13,7 +13,7 @@ all: $(DESTDIR)/opiealarm $(DESTDIR)/opieatd $(DESTDIR)/opiealarm: opiealarm.c $(CC) $(CFLAGS) opiealarm.c -o $(DESTDIR)/opiealarm $(LDFLAGS) - $(STRIP) -s $(DESTDIR)/opiealarm + $(STRIP) --strip-all $(DESTDIR)/opiealarm chmod u+s $(DESTDIR)/opiealarm chown root $(DESTDIR)/opiealarm 2>/dev/null || echo -e "\nopiealarm must be owned by root to work correctly.\n" diff --git a/core/opiealarm/opiealarm.c b/core/opiealarm/opiealarm.c index 71367b3..ce0103e 100644 --- a/core/opiealarm/opiealarm.c +++ b/core/opiealarm/opiealarm.c @@ -243,7 +243,7 @@ int suspend ( int fix_rtc ) // get RTC time memset ( &rtc, 0, sizeof ( struct tm )); - if ( ioctl ( fd, RTC_ALM_SET, &rtc ) < 0 ) + if ( ioctl ( fd, RTC_RD_TIME, &rtc ) < 0 ) error_msg_and_die ( 1, "ioctl RTC_RD_TIME" ); rtct = mktime ( &rtc ); -- cgit v0.9.0.2