X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fuuid.c;h=26fb61e99449a5a9f3a0b40a262787c36996c49c;hp=68fddc0a2ff0089376275b8db80064ad734bc880;hb=d1ba29d290281cf72ca3ec7b0222b336c747e925;hpb=c70636a7342f34e3be68fcf411cf3e3718b8e73f diff --git a/src/common/uuid.c b/src/common/uuid.c index 68fddc0a2..26fb61e99 100644 --- a/src/common/uuid.c +++ b/src/common/uuid.c @@ -2,20 +2,11 @@ * Copyright (C) 2018 Jérémie Galarneau * Copyright (C) 2019 Michael Jeanson * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License, version 2.1 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: LGPL-2.1-only * - * This library 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 Lesser General Public License - * for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include @@ -43,7 +34,7 @@ int lttng_uuid_from_str(const char *str_in, lttng_uuid uuid_out) goto end; } - if (strnlen(str_in, LTTNG_UUID_STR_LEN) != LTTNG_UUID_STR_LEN - 1) { + if (lttng_strnlen(str_in, LTTNG_UUID_STR_LEN) != LTTNG_UUID_STR_LEN - 1) { ret = -1; goto end; }