X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Frandom.c;h=0bd853ba4a8774e3b5fbab26bded1d8a599a617d;hb=b2e8ba42a765741d1365fe39e3ad6c26690137b9;hp=5151f9a9e822795ea1984ca1a051baf3d1b8c947;hpb=5a2f5e92e422d87a28581ba97e6b1789ff743bc6;p=lttng-modules.git diff --git a/wrapper/random.c b/wrapper/random.c index 5151f9a9..0bd853ba 100644 --- a/wrapper/random.c +++ b/wrapper/random.c @@ -1,4 +1,5 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + * * wrapper/random.c * * wrapper around bootid read. Using KALLSYMS to get its address when @@ -6,22 +7,10 @@ * 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 */ +#include + /* boot_id depends on sysctl */ #if defined(CONFIG_SYSCTL) @@ -58,7 +47,7 @@ int wrapper_get_bootid(char *bootid) ret = -EINVAL; goto end; } - + bootid[BOOT_ID_LEN - 1] = '\0'; ret = 0; end: