X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=tests%2Funit%2Flibringbuffer%2Fshm.c;h=13c74c3dc9dabd518342a0c8ffefaa5665d4883a;hb=27b98e6c9ed3fbfc9ee84b56582892db3009b1b7;hp=5ea131096ea40c6126f5295499ecb2612d7aef98;hpb=8707de3510ac14bcdf0d39d53a64d47726f75d3b;p=lttng-ust.git diff --git a/tests/unit/libringbuffer/shm.c b/tests/unit/libringbuffer/shm.c index 5ea13109..13c74c3d 100644 --- a/tests/unit/libringbuffer/shm.c +++ b/tests/unit/libringbuffer/shm.c @@ -1,18 +1,7 @@ -/* Copyright (C) 2020 Michael Jeanson +/* + * SPDX-License-Identifier: LGPL-2.1-only * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; only - * version 2.1 of the License. - * - * 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 + * Copyright (C) 2020 Michael Jeanson */ #include @@ -23,14 +12,14 @@ #include #include -#include -#include "libringbuffer/shm.h" +#include "common/ringbuffer/shm.h" +#include "common/align.h" #include "tap.h" #define SHM_PATH "/ust-shm-test" -int main() +int main(void) { int shmfd; size_t shmsize = LTTNG_UST_PAGE_SIZE * 10;