projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix mutex lock in read_event
[collectd.git]
/
src
/
daemon
/
utils_time.c
diff --git
a/src/daemon/utils_time.c
b/src/daemon/utils_time.c
index
a807c7f
..
5dd7d0e
100644
(file)
--- a/
src/daemon/utils_time.c
+++ b/
src/daemon/utils_time.c
@@
-26,8
+26,8
@@
#include "collectd.h"
#include "collectd.h"
-#include "common.h"
#include "plugin.h"
#include "plugin.h"
+#include "utils/common/common.h"
#include "utils_time.h"
#ifndef DEFAULT_MOCK_TIME
#include "utils_time.h"
#ifndef DEFAULT_MOCK_TIME
@@
-144,9
+144,9
@@
static int format_zone(char *buffer, size_t buffer_size,
} /* }}} int format_zone */
int format_rfc3339(char *buffer, size_t buffer_size, struct tm const *t_tm,
} /* }}} int format_zone */
int format_rfc3339(char *buffer, size_t buffer_size, struct tm const *t_tm,
- long nsec,
_B
ool print_nano, char const *zone) /* {{{ */
+ long nsec,
b
ool print_nano, char const *zone) /* {{{ */
{
{
-
in
t len;
+
size_
t len;
char *pos = buffer;
size_t size_left = buffer_size;
char *pos = buffer;
size_t size_left = buffer_size;
@@
-167,7
+167,7
@@
int format_rfc3339(char *buffer, size_t buffer_size, struct tm const *t_tm,
} /* }}} int format_rfc3339 */
int format_rfc3339_utc(char *buffer, size_t buffer_size, cdtime_t t,
} /* }}} int format_rfc3339 */
int format_rfc3339_utc(char *buffer, size_t buffer_size, cdtime_t t,
-
_B
ool print_nano) /* {{{ */
+
b
ool print_nano) /* {{{ */
{
struct tm t_tm;
long nsec = 0;
{
struct tm t_tm;
long nsec = 0;
@@
-181,7
+181,7
@@
int format_rfc3339_utc(char *buffer, size_t buffer_size, cdtime_t t,
} /* }}} int format_rfc3339_utc */
int format_rfc3339_local(char *buffer, size_t buffer_size, cdtime_t t,
} /* }}} int format_rfc3339_utc */
int format_rfc3339_local(char *buffer, size_t buffer_size, cdtime_t t,
-
_B
ool print_nano) /* {{{ */
+
b
ool print_nano) /* {{{ */
{
struct tm t_tm;
long nsec = 0;
{
struct tm t_tm;
long nsec = 0;