X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Frandom.h;h=35539e43844a927a8e69bdc3687e85e24b47f19e;hb=9f36eaed6f91d5897924b551b44d1edd8cee00e2;hp=8f13c185c37ec0f90967a0cf0f03e4e86e3f0f49;hpb=886d51a3d7ed5fa6b41d7f19b3e14ae6c535a44c;p=lttng-modules.git diff --git a/wrapper/random.h b/wrapper/random.h index 8f13c185..35539e43 100644 --- a/wrapper/random.h +++ b/wrapper/random.h @@ -1,7 +1,5 @@ -#ifndef _LTTNG_WRAPPER_RANDOM_H -#define _LTTNG_WRAPPER_RANDOM_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) + * * wrapper/random.h * * wrapper around bootid read. Using KALLSYMS to get its address when @@ -9,23 +7,14 @@ * modules. * * Copyright (C) 2011-2012 Mathieu Desnoyers - * - * 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 */ -#define BOOT_ID_LEN 37 +#ifndef _LTTNG_WRAPPER_RANDOM_H +#define _LTTNG_WRAPPER_RANDOM_H + +#include + +#define BOOT_ID_LEN LTTNG_MODULES_UUID_STR_LEN int wrapper_get_bootid(char *bootid);