X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Ftime.c;h=61ff691e30fa4bb582bd78345b7047ddf8f4036c;hb=395004a13b038fde13364a662d735d16937ea2d1;hp=3a10447e96011e01a9079d9b23d6213af0aebd1b;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/src/common/time.c b/src/common/time.c index 3a10447e9..61ff691e3 100644 --- a/src/common/time.c +++ b/src/common/time.c @@ -1,7 +1,7 @@ /* * Copyright (C) 2013 Jérémie Galarneau * - * SPDX-License-Identifier: GPL-2.0-only + * SPDX-License-Identifier: LGPL-2.1-only * */ @@ -9,10 +9,10 @@ #include #include #include +#include #include #include #include -#include #include #include #include @@ -88,7 +88,7 @@ int time_to_iso8601_str(time_t time, char *str, size_t len) 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");