loc_api_v02: Updating to loc api v02 idl Major:0x02, Minor:0x14
Renames elapsed_millis_since_boot.cpp to platform_lib_time.cpp. Fixed Klockwork null pointer dereference errors. CRs-fixed: 476773 Change-Id: I8c05bb3ab6fdd3ec80d7fe3427160b2e29d7a0d0
This commit is contained in:
parent
8c08472c8c
commit
b83679bfc9
4 changed files with 8 additions and 3 deletions
|
@ -110,8 +110,10 @@ SIDE EFFECTS
|
|||
int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd)
|
||||
{
|
||||
close(fd);
|
||||
if (pipe_name) unlink(pipe_name);
|
||||
LOC_LOGD("fd = %d, %s\n", fd, pipe_name);
|
||||
if (pipe_name != NULL) {
|
||||
unlink(pipe_name);
|
||||
LOC_LOGD("fd = %d, %s\n", fd, pipe_name);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -44,3 +44,5 @@ int64_t elapsedMillisSinceBoot()
|
|||
int64_t t_us = systemTime(0);
|
||||
return (int64_t) t_us / 1000LL;
|
||||
}
|
||||
|
||||
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
#ifndef _PLATFORM_LIB_TIME_H_
|
||||
#define _PLATFORM_LIB_TIME_H_
|
||||
#include <sys/time.h>
|
||||
|
||||
int64_t systemTime(int clock);
|
||||
int64_t elapsedMillisSinceBoot();
|
||||
|
|
|
@ -20,7 +20,7 @@ libgps_utils_so_la_c_sources = linked_list.c \
|
|||
msg_q.c \
|
||||
loc_cfg.cpp \
|
||||
loc_log.cpp \
|
||||
../platform_lib_abstractions/elapsed_millis_since_boot.cpp
|
||||
../platform_lib_abstractions/platform_lib_time.cpp
|
||||
|
||||
library_includedir = $(pkgincludedir)/utils
|
||||
|
||||
|
|
Loading…
Reference in a new issue