projects
/
platform
/
core
/
telephony
/
phonenumber-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8130909
)
Return type check for gettimeofday()
74/258574/1
author
Abhimanyu Swami
<abhimanyu1.s@samsung.com>
Thu, 20 May 2021 09:47:53 +0000
(15:17 +0530)
committer
Abhimanyu Swami
<abhimanyu1.s@samsung.com>
Thu, 20 May 2021 09:47:53 +0000
(15:17 +0530)
Change-Id: Ia4603e8f4fa071db4f8cca11ee62f26a864085d1
Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
daemon/phnd-sqlite.c
patch
|
blob
|
history
diff --git
a/daemon/phnd-sqlite.c
b/daemon/phnd-sqlite.c
index 4cb671a07320b9c5e83bc5bda3a9cb951ad2a527..c00e58d7464cba5bae4489371c8d3334c0696115 100644
(file)
--- a/
daemon/phnd-sqlite.c
+++ b/
daemon/phnd-sqlite.c
@@
-98,7
+98,8
@@
int phnd_sqlite_prepare(const char *query, phnd_stmt **stmt)
if (SQLITE_OK != ret)
ERR("sqlite3_prepare_v2() Fail(%d:%s)", ret, sqlite3_errmsg(db));
if (SQLITE_BUSY == ret || SQLITE_LOCKED == ret) {
- gettimeofday(&now, NULL);
+ if (gettimeofday(&now, NULL) != 0)
+ ERR("gettimeofday() failed");
timersub(&now, &from, &diff);
retry = (diff.tv_sec < PHND_SQLITE_RETRY_TIME) ? true : false;
if (retry)