From 4d671fec381d5159b4112868cad40b72b50ec2c1 Mon Sep 17 00:00:00 2001 From: Davide Garberi Date: Tue, 14 Nov 2023 02:09:38 +0100 Subject: msm8996-common: gps: Fix compilation errors Change-Id: If2b120073acb63b0b2ef385f9ba6508ef2e39179 --- gps/gnss/XtraSystemStatusObserver.h | 2 +- gps/utils/loc_cfg.cpp | 3 ++- 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) { -- cgit v1.2.3