- Correct flag to disable stripping (nostrip=True) - Add gpsd-declaration-in-for-loop.patch to remove c99 construction (backport from upstream) - Upstream changed location of gpsd in systemd gpsd.service file (change it back to {_sbindir}) OBS-URL: https://build.opensuse.org/request/show/656930 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/gpsd?expand=0&rev=123
20 lines
609 B
Diff
20 lines
609 B
Diff
--- gpsd-3.18.1.orig/driver_ubx.c
|
|
+++ gpsd-3.18.1/driver_ubx.c
|
|
@@ -813,6 +813,7 @@
|
|
int8_t leapS;
|
|
uint8_t numMeas;
|
|
uint8_t recStat;
|
|
+ int i;
|
|
|
|
if (16 > data_len) {
|
|
gpsd_log(&session->context->errout, LOG_WARN,
|
|
@@ -830,7 +831,7 @@
|
|
"UBX_RXM_RAWX: rcvTow %f week %u leapS %d numMeas %u recStat %d\n",
|
|
rcvTow, week, leapS, numMeas, recStat);
|
|
|
|
- for (int i = 0; i < numMeas; i++) {
|
|
+ for (i = 0; i < numMeas; i++) {
|
|
int off = 32 * i;
|
|
double prMes = getled64((const char *)buf, off + 16);
|
|
double cpMes = getled64((const char *)buf, off + 24);
|