.gitignore: ignore local vscode workspace settings file
[lttng-tools.git] / tests / regression / ust / high-throughput / main.c
index dbd2998ac54344e0952c14eeb9e92046dc03985f..2306c2da1b8539e3fb1329275dd09138c989d149 100644 (file)
@@ -1,42 +1,31 @@
 /*
- * Copyright (C) 2009  Pierre-Marc Fournier
- * Copyright (C) 2011  Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright (C) 2009 Pierre-Marc Fournier
+ * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
- * 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; version 2.1 of
- * the License.
+ * 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 <stdio.h>
-#include <unistd.h>
-#include <sys/mman.h>
-#include <stdarg.h>
-#include <sys/types.h>
-#include <sys/stat.h>
+#include <arpa/inet.h>
 #include <fcntl.h>
 #include <signal.h>
-#include <string.h>
-#include <arpa/inet.h>
+#include <stdarg.h>
+#include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
+#include <sys/mman.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <unistd.h>
 
 #define TRACEPOINT_DEFINE
 #include "tp.h"
 
-void inthandler(int sig)
+static void inthandler(int sig __attribute__((unused)))
 {
 }
 
-int init_int_handler(void)
+static int init_int_handler(void)
 {
        int result;
        struct sigaction act;
@@ -81,8 +70,7 @@ int main(int argc, char **argv)
 
        for (i = 0; i < 1000000; i++) {
                netint = htonl(i);
-               tracepoint(tp, tptest, i, netint, values, text,
-                               strlen(text), dbl, flt);
+               tracepoint(tp, tptest, i, netint, values, text, strlen(text), dbl, flt);
        }
 
        return 0;
This page took 0.025503 seconds and 4 git commands to generate.