aboutsummaryrefslogtreecommitdiff
path: root/gps
diff options
context:
space:
mode:
authorDavide Garberi <dade.garberi@gmail.com>2023-11-14 02:09:38 +0100
committerDavide Garberi <dade.garberi@gmail.com>2023-11-18 17:49:38 +0100
commit4d671fec381d5159b4112868cad40b72b50ec2c1 (patch)
treeeeeca4942d24fd131ddbf0691334bf21cdc523cf /gps
parent7ad916ba4b3d06c4cd07be42c526e23ae793124b (diff)
msm8996-common: gps: Fix compilation errorslineage-20
Change-Id: If2b120073acb63b0b2ef385f9ba6508ef2e39179
Diffstat (limited to 'gps')
-rw-r--r--gps/gnss/XtraSystemStatusObserver.h2
-rw-r--r--gps/utils/loc_cfg.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/gps/gnss/XtraSystemStatusObserver.h b/gps/gnss/XtraSystemStatusObserver.h
index af0789b..6d3e789 100644
--- a/gps/gnss/XtraSystemStatusObserver.h
+++ b/gps/gnss/XtraSystemStatusObserver.h
@@ -46,7 +46,7 @@ public :
inline XtraSystemStatusObserver(IOsObserver* sysStatObs, const MsgTask* msgTask):
mSystemStatusObsrvr(sysStatObs), mMsgTask(msgTask),
mGpsLock(-1), mConnections(0), mXtraThrottle(true), mReqStatusReceived(false),
- mDelayLocTimer(*this), mIsConnectivityStatusKnown (false) {
+ mIsConnectivityStatusKnown (false), mDelayLocTimer(*this) {
subscribe(true);
startListeningNonBlocking(LOC_IPC_HAL);
mDelayLocTimer.start(100 /*.1 sec*/, false);
diff --git a/gps/utils/loc_cfg.cpp b/gps/utils/loc_cfg.cpp
index 1c6a2e0..e646ea8 100644
--- a/gps/utils/loc_cfg.cpp
+++ b/gps/utils/loc_cfg.cpp
@@ -949,7 +949,8 @@ int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_p
i = 0;
char* temp_arg = ('/' == child_proc[j].name[0][0]) ?
(strrchr(child_proc[j].name[0], '/') + 1) : child_proc[j].name[0];
- strlcpy (child_proc[j].args[i++], temp_arg, sizeof (child_proc[j].args[i++]));
+ i++;
+ strlcpy (child_proc[j].args[i], temp_arg, sizeof (child_proc[j].args[i]));
if(conf.premium_feature) {
if(conf.loc_feature_mask & loc_service_mask) {