projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Relicence all source and header files included in LGPL code
[lttng-tools.git]
/
src
/
common
/
time.c
diff --git
a/src/common/time.c
b/src/common/time.c
index 3a10447e96011e01a9079d9b23d6213af0aebd1b..61ff691e30fa4bb582bd78345b7047ddf8f4036c 100644
(file)
--- a/
src/common/time.c
+++ b/
src/common/time.c
@@
-1,7
+1,7
@@
/*
* Copyright (C) 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
/*
* Copyright (C) 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
- * SPDX-License-Identifier:
GPL-2.0
-only
+ * SPDX-License-Identifier:
LGPL-2.1
-only
*
*/
*
*/
@@
-9,10
+9,10
@@
#include <common/error.h>
#include <common/macros.h>
#include <common/error.h>
#include <common/error.h>
#include <common/macros.h>
#include <common/error.h>
+#include <common/compat/errno.h>
#include <stddef.h>
#include <stdint.h>
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#include <limits.h>
-#include <errno.h>
#include <pthread.h>
#include <locale.h>
#include <string.h>
#include <pthread.h>
#include <locale.h>
#include <string.h>
@@
-88,7
+88,7
@@
int time_to_iso8601_str(time_t time, char *str, size_t len)
goto end;
}
goto end;
}
-
tm_result = localtime_r(&time, &tm_storage);
+ tm_result = localtime_r(&time, &tm_storage);
if (!tm_result) {
ret = -1;
PERROR("Failed to break down timestamp to tm structure");
if (!tm_result) {
ret = -1;
PERROR("Failed to break down timestamp to tm structure");
This page took
0.027444 seconds
and
4
git commands to generate.