chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always check asprintf return code
[elogind.git]
/
src
/
shared
/
clock-util.c
diff --git
a/src/shared/clock-util.c
b/src/shared/clock-util.c
index 4f31c10b816ed0a60b5ff0c211f2a6b412eb7127..e66db63ba01263eaac26339bb13294f8e0382e4c 100644
(file)
--- a/
src/shared/clock-util.c
+++ b/
src/shared/clock-util.c
@@
-43,7
+43,7
@@
#include "clock-util.h"
#include "fileio.h"
#include "clock-util.h"
#include "fileio.h"
-int clock_get_
time
(struct tm *tm) {
+int clock_get_
hwclock
(struct tm *tm) {
_cleanup_close_ int fd = -1;
assert(tm);
_cleanup_close_ int fd = -1;
assert(tm);
@@
-64,7
+64,7
@@
int clock_get_time(struct tm *tm) {
return 0;
}
return 0;
}
-int clock_set_
time
(const struct tm *tm) {
+int clock_set_
hwclock
(const struct tm *tm) {
_cleanup_close_ int fd = -1;
assert(tm);
_cleanup_close_ int fd = -1;
assert(tm);