Fix: don't access packet header for stream_id and stream_instance_id getters
[lttng-modules.git] / wrapper / random.c
index da8cb176bce9e5904542834cd4acbc4833eeacb2..c938ae35a4ac2a96a2a2deee26cb645a33792af2 100644 (file)
@@ -1,13 +1,16 @@
-/*
- * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com)
+/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
+ *
+ * wrapper/random.c
  *
  * wrapper around bootid read. Using KALLSYMS to get its address when
  * available, else we need to have a kernel that exports this function to GPL
  * modules.
  *
- * Dual LGPL v2.1/GPL v2 license.
+ * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  */
 
+#include <linux/errno.h>
+
 /* boot_id depends on sysctl */
 #if defined(CONFIG_SYSCTL)
 
@@ -15,7 +18,7 @@
 #include <linux/file.h>
 #include <linux/sched.h>
 #include <linux/uaccess.h>
-#include "random.h"
+#include <wrapper/random.h>
 
 /*
  * Returns string boot id.
This page took 0.022999 seconds and 4 git commands to generate.