X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Fgetenv.c;h=ea8edbcdf5244878f5a7fd4f900068f0502e4fe7;hb=8936b6c0add7eb6706e0a1ca50e03c446dda4006;hp=a05653d75b2e21ea19443b2ad160d5b1bebfe440;hpb=b4051ad8c170901d5297e1b3005b24e63cb0ab1e;p=lttng-ust.git diff --git a/liblttng-ust/getenv.c b/liblttng-ust/getenv.c index a05653d7..ea8edbcd 100644 --- a/liblttng-ust/getenv.c +++ b/liblttng-ust/getenv.c @@ -1,19 +1,7 @@ /* - * Copyright (C) 2017 - Mathieu Desnoyers + * 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) 2017 Mathieu Desnoyers */ #include @@ -22,7 +10,7 @@ #include #include #include -#include +#include #include "getenv.h" enum lttng_env_secure { @@ -62,7 +50,7 @@ int lttng_is_setuid_setgid(void) return geteuid() != getuid() || getegid() != getgid(); } -char *lttng_getenv(const char *name) +char *lttng_ust_getenv(const char *name) { size_t i; struct lttng_env *e;