projects
/
platform
/
core
/
security
/
auth-fw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e92ac5
)
Fix build bread for new toolchain
61/295361/1
accepted/tizen/unified/dev/20230726.115718
author
Dongsun Lee
<ds73.lee@samsung.com>
Thu, 6 Jul 2023 05:05:56 +0000
(14:05 +0900)
committer
Dongsun Lee
<ds73.lee@samsung.com>
Thu, 6 Jul 2023 05:06:02 +0000
(14:06 +0900)
- change time_t to timespec in setting device time
Change-Id: I8941927f8d4e34912d6465586b6fa6b02b5837a8
tests/test-client.cpp
patch
|
blob
|
history
diff --git
a/tests/test-client.cpp
b/tests/test-client.cpp
index f01aa5c50a64cea46b2c122e6fd1bd5f5bb314a2..37b4986bea0b596f653959c91f9a0dd3da8a0486 100644
(file)
--- a/
tests/test-client.cpp
+++ b/
tests/test-client.cpp
@@
-88,10
+88,10
@@
int check_passwd_reusable(password_type type, const char *token)
int set_relative_date(int days)
{
- time
_t as_is = ::time(NULL)
;
-
time_t to_be = as_is + (days * 86400
);
-
- return
::stime(&to_be
);
+ time
spec ts = {}
;
+
clock_gettime(CLOCK_REALTIME, &ts
);
+ ts.tv_sec += days * 86400;
+ return
(clock_settime(CLOCK_REALTIME, &ts)
);
}
} // anonymous namespace