Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109421
b: refs/heads/master
c: 73442da
h: refs/heads/master
i:
  109419: 6cf8821
v: v3
  • Loading branch information
Jan Altenberg authored and Linus Torvalds committed Sep 3, 2008
1 parent 8968b1a commit 27a7a25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b4a49b12e879ce79f495cc318c4b33caec6922e8
refs/heads/master: 73442daf2ea85e2a779396b76b1a39b10188ecb5
5 changes: 3 additions & 2 deletions trunk/drivers/rtc/rtc-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ EXPORT_SYMBOL(rtc_year_days);
*/
void rtc_time_to_tm(unsigned long time, struct rtc_time *tm)
{
unsigned int days, month, year;
unsigned int month, year;
int days;

days = time / 86400;
time -= days * 86400;
time -= (unsigned int) days * 86400;

/* day of the week, 1970-01-01 was a Thursday */
tm->tm_wday = (days + 4) % 7;
Expand Down

0 comments on commit 27a7a25

Please sign in to comment.