fix: all functions have declarations (-Wmissing-prototypes -Wold-style-definition)
[lttng-ust.git] / tests / unit / libringbuffer / shm.c
index 5ea131096ea40c6126f5295499ecb2612d7aef98..60b8e6fef866a65879fb27b113189637e3458356 100644 (file)
@@ -1,18 +1,7 @@
-/* Copyright (C) 2020 Michael Jeanson <mjeanson@efficios.com>
+/*
+ * 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 <mjeanson@efficios.com>
  */
 
 #include <assert.h>
 #include <sys/mman.h>
 #include <fcntl.h>
 
-#include <lttng/align.h>
 #include "libringbuffer/shm.h"
+#include "ust-compat.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;
This page took 0.023534 seconds and 4 git commands to generate.