git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8632fc8
)
fix compiler warnings
author
ghost
<andreas.monzner@multimedia-labs.de>
Wed, 4 Mar 2009 23:11:04 +0000
(
00:11
+0100)
committer
ghost
<andreas.monzner@multimedia-labs.de>
Wed, 4 Mar 2009 23:11:04 +0000
(
00:11
+0100)
lib/dvb/dvbtime.cpp
patch
|
blob
|
history
diff --git
a/lib/dvb/dvbtime.cpp
b/lib/dvb/dvbtime.cpp
index 03847ecb88b7bfb245f298b1bd0d85a0be184fbb..a6830dc06aea6f37ee5e4c1d9cb23e1df9645f67 100644
(file)
--- a/
lib/dvb/dvbtime.cpp
+++ b/
lib/dvb/dvbtime.cpp
@@
-20,7
+20,7
@@
void setRTC(time_t time)
FILE *f = fopen("/proc/stb/fp/rtc", "w");
if (f)
{
- if (fprintf(f, "%u", time))
+ if (fprintf(f, "%u",
(unsigned int)
time))
prev_time = time;
else
eDebug("write /proc/stb/fp/rtc failed (%m)");
@@
-47,8
+47,11
@@
time_t getRTC()
if (f)
{
// sanity check to detect corrupt atmel firmware
- if (fscanf(f, "%u", &rtc_time) != 1)
+ unsigned int tmp;
+ if (fscanf(f, "%u", &tmp) != 1)
eDebug("read /proc/stb/fp/rtc failed (%m)");
+ else
+ rtc_time=tmp;
fclose(f);
}
else