mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed initializer
This commit is contained in:
parent
38703cbf5d
commit
f624a082ad
4
eit.c
4
eit.c
@ -8,7 +8,7 @@
|
|||||||
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
|
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
|
||||||
* Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg <marcel.wiesweg@gmx.de>.
|
* Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg <marcel.wiesweg@gmx.de>.
|
||||||
*
|
*
|
||||||
* $Id: eit.c 4.8 2020/05/04 12:28:31 kls Exp $
|
* $Id: eit.c 4.9 2020/05/04 13:02:14 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "eit.h"
|
#include "eit.h"
|
||||||
@ -391,7 +391,7 @@ cTDT::cTDT(const u_char *Data)
|
|||||||
if (abs(diff) > MAX_TIME_DIFF) {
|
if (abs(diff) > MAX_TIME_DIFF) {
|
||||||
mutex.Lock();
|
mutex.Lock();
|
||||||
if (abs(diff) > MAX_ADJ_DIFF) {
|
if (abs(diff) > MAX_ADJ_DIFF) {
|
||||||
timespec ts = { 0 };
|
timespec ts = {};
|
||||||
ts.tv_sec = dvbtim;
|
ts.tv_sec = dvbtim;
|
||||||
if (clock_settime(CLOCK_REALTIME, &ts) == 0)
|
if (clock_settime(CLOCK_REALTIME, &ts) == 0)
|
||||||
isyslog("system time changed from %s (%ld) to %s (%ld)", *TimeToString(loctim), loctim, *TimeToString(dvbtim), dvbtim);
|
isyslog("system time changed from %s (%ld) to %s (%ld)", *TimeToString(loctim), loctim, *TimeToString(dvbtim), dvbtim);
|
||||||
|
Loading…
Reference in New Issue
Block a user