X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fdynamic-array.c;h=198df19bbaa89d5bff75911fdf2d1b915b0cfd3e;hp=bea903cafeae2a115b1fc1816345a0d50017dc8f;hb=0c51e8f329cdd907761e34c3e4394200a56c6812;hpb=74465ffbb5ead0a3d7ba6342e7baf16f4fa662f9 diff --git a/src/common/dynamic-array.c b/src/common/dynamic-array.c index bea903caf..198df19bb 100644 --- a/src/common/dynamic-array.c +++ b/src/common/dynamic-array.c @@ -1,18 +1,8 @@ /* - * Copyright (C) 2019 - Jérémie Galarneau + * Copyright (C) 2019 Jérémie Galarneau * - * This program 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 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 Lesser General Public License - * for more details. - * - * You should have received a copy of the GNU Lesser 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 @@ -99,7 +89,7 @@ void lttng_dynamic_array_clear(struct lttng_dynamic_array *array) } } - lttng_dynamic_buffer_set_size(&array->buffer, 0); + (void) lttng_dynamic_buffer_set_size(&array->buffer, 0); array->size = 0; }