daniel has uploaded this change for review.

View Change

oc2gbts_mgr_calib: Don't cast timespec_t to time_t

Change-Id: I6dc8ce303e5cb0fb412857a7f2c925e8cfe9b1e0
---
M src/osmo-bts-oc2g/misc/oc2gbts_mgr_calib.c
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/38/30638/1
diff --git a/src/osmo-bts-oc2g/misc/oc2gbts_mgr_calib.c b/src/osmo-bts-oc2g/misc/oc2gbts_mgr_calib.c
index f66761a..f548754 100644
--- a/src/osmo-bts-oc2g/misc/oc2gbts_mgr_calib.c
+++ b/src/osmo-bts-oc2g/misc/oc2gbts_mgr_calib.c
@@ -171,7 +171,7 @@
return;
}

- mgr->gps.gps_fix_now = (time_t) data->fix.time;
+ mgr->gps.gps_fix_now = data->fix.time.tv_sec;
LOGP(DCALIB, LOGL_INFO, "Got a GPS fix, satellites used: %d, timestamp: %ld\n",
data->satellites_used, mgr->gps.gps_fix_now);
osmo_timer_del(&mgr->gps.fix_timeout);

To view, visit change 30638. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I6dc8ce303e5cb0fb412857a7f2c925e8cfe9b1e0
Gerrit-Change-Number: 30638
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann@sysmocom.de>
Gerrit-MessageType: newchange