X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ftime.c;h=d084a3fddbdb5c462e5246fb83b9c336c4b898e9;hp=d2d2503d9f42962e5a83371b22309ef19c13001a;hb=5e5af4be7ee46668600e4cf72d5ac85a19d8ecd4;hpb=a8b66566890a353cc3a89836281541195ad69d73 diff --git a/src/common/time.c b/src/common/time.c index d2d2503d9..d084a3fdd 100644 --- a/src/common/time.c +++ b/src/common/time.c @@ -1,18 +1,8 @@ /* - * Copyright (C) 2013 - Jérémie Galarneau + * Copyright (C) 2013 Jérémie Galarneau * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License, version 2 only, as - * published by the Free Software Foundation. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 51 - * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -98,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");