/* wrap getfilecon, lgetfilecon, and fgetfilecon
- Copyright (C) 2009-2011 Free Software Foundation, Inc.
+ Copyright (C) 2009-2013 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software Foundation,
- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+ along with this program; if not, see <http://www.gnu.org/licenses/>. */
/* written by Jim Meyering */
"unlabeled" context. Map both failures to a return value of -1, and
set errno to ENOTSUP in the first case, and ENODATA in the latter. */
-static inline int
+static int
map_to_failure (int ret, security_context_t *con)
{
if (ret == 0)