Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Staging:C
systemd-mini
0001-Fix-warning-about-unused-variable-with-SEL...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-warning-about-unused-variable-with-SELINUX.patch of Package systemd-mini
From 493d521d9ffe706741665a88ea14929913ea2eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl> Date: Tue, 23 Sep 2014 09:22:40 -0400 Subject: [PATCH] Fix warning about unused variable with !SELINUX src/shared/label.c:255:15: warning: unused variable 'l' [-Wunused-variable] char *l = NULL; ^ --- src/shared/label.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git src/shared/label.c src/shared/label.c index 02b41f0..b6af38d 100644 --- src/shared/label.c +++ src/shared/label.c @@ -252,9 +252,10 @@ fail: int label_get_our_label(char **label) { int r = -EOPNOTSUPP; - char *l = NULL; #ifdef HAVE_SELINUX + char *l = NULL; + r = getcon(&l); if (r < 0) return r; -- 1.7.9.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor