summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-11-05 16:00:39 +0200
committerPanu Matilainen <pmatilai@redhat.com>2012-11-05 16:04:41 +0200
commit249128b3f85cb1544df74c4953a65507c2aea9f6 (patch)
treeed1ba01d117592307799c45c45420a45cf6ebf4b /lib
parent34c4565d8ce656de7ccad9c098757e367916d66f (diff)
downloadlibrpm-tizen-249128b3f85cb1544df74c4953a65507c2aea9f6.tar.gz
librpm-tizen-249128b3f85cb1544df74c4953a65507c2aea9f6.tar.bz2
librpm-tizen-249128b3f85cb1544df74c4953a65507c2aea9f6.zip
Work around Fedora-specific patch to libselinux causing warnings
- In recent Fedora, struct selinux_opt value member is changed to an anonymous union of char * and char **. Initialize the members by name to avoid warnings in both (patched and unpatched) cases.
Diffstat (limited to 'lib')
-rw-r--r--lib/rpmts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmts.c b/lib/rpmts.c
index a34edf9a0..b5053713c 100644
--- a/lib/rpmts.c
+++ b/lib/rpmts.c
@@ -760,7 +760,7 @@ rpmRC rpmtsSELabelInit(rpmts ts, int open_status)
}
struct selinux_opt opts[] = {
- {SELABEL_OPT_PATH, path}
+ { .type = SELABEL_OPT_PATH, .value = path}
};
if (ts->selabelHandle) {