[BusyBox-cvs] busybox/util-linux hwclock.c,1.3,1.4

Robert Griebl sandman at busybox.net
Thu Jan 2 07:16:57 UTC 2003


Update of /var/cvs/busybox/util-linux
In directory winder:/tmp/cvs-serv21974

Modified Files:
	hwclock.c 
Log Message:
> Eliminate dependancy on kernel header files.  Naughty naughty.
> Using linux kernel headers is a Bad Thing(tm) and should be
> punished.
>  -Erik

Doing this wrong should be punished even harder :)
 - Robert 


Index: hwclock.c
===================================================================
RCS file: /var/cvs/busybox/util-linux/hwclock.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- hwclock.c	11 Dec 2002 03:41:28 -0000	1.3
+++ hwclock.c	2 Jan 2003 07:16:53 -0000	1.4
@@ -35,8 +35,21 @@
 
 
 /* Copied from linux/rtc.h to eliminate the kernel dependancy */
-#define RTC_SET_TIME	_IOW('p', 0x0a, struct tm) /* Set RTC time    */
-#define RTC_RD_TIME	_IOR('p', 0x09, struct tm) /* Read RTC time   */
+struct linux_rtc_time {
+	int tm_sec;
+	int tm_min;
+	int tm_hour;
+	int tm_mday;
+	int tm_mon;
+	int tm_year;
+	int tm_wday;
+	int tm_yday;
+	int tm_isdst;
+};
+                                    
+
+#define RTC_SET_TIME   _IOW('p', 0x0a, struct linux_rtc_time) /* Set RTC time    */
+#define RTC_RD_TIME    _IOR('p', 0x09, struct linux_rtc_time) /* Read RTC time   */
 
 
 #ifdef CONFIG_FEATURE_HWCLOCK_LONGOPTIONS




More information about the busybox-cvs mailing list