aboutsummaryrefslogtreecommitdiff
path: root/libbb/rtc.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-09 19:10:49 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-09 19:10:49 +0100
commitdc698bb038756a926aaa529bda1b939eab2c1676 (patch)
tree4084a40897d9d81816228935a1398e80dd4b173b /libbb/rtc.c
parent0681137972dc89b5003b0415e09184c0ecf1c875 (diff)
downloadbusybox-dc698bb038756a926aaa529bda1b939eab2c1676.tar.gz
*: make it easier to distinquish "struct tm", pointer to one, etc
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/rtc.c')
-rw-r--r--libbb/rtc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libbb/rtc.c b/libbb/rtc.c
index 9807e1cf9..fcd6c64d7 100644
--- a/libbb/rtc.c
+++ b/libbb/rtc.c
@@ -59,14 +59,14 @@ int FAST_FUNC rtc_xopen(const char **default_rtc, int flags)
return xopen(*default_rtc, flags);
}
-void FAST_FUNC rtc_read_tm(struct tm *tm, int fd)
+void FAST_FUNC rtc_read_tm(struct tm *ptm, int fd)
{
- memset(tm, 0, sizeof(*tm));
- xioctl(fd, RTC_RD_TIME, tm);
- tm->tm_isdst = -1; /* "not known" */
+ memset(ptm, 0, sizeof(*ptm));
+ xioctl(fd, RTC_RD_TIME, ptm);
+ ptm->tm_isdst = -1; /* "not known" */
}
-time_t FAST_FUNC rtc_tm2time(struct tm *tm, int utc)
+time_t FAST_FUNC rtc_tm2time(struct tm *ptm, int utc)
{
char *oldtz = oldtz; /* for compiler */
time_t t;
@@ -77,7 +77,7 @@ time_t FAST_FUNC rtc_tm2time(struct tm *tm, int utc)
tzset();
}
- t = mktime(tm);
+ t = mktime(ptm);
if (utc) {
unsetenv("TZ");