summaryrefslogtreecommitdiff
path: root/hw/xfree86/os-support/linux/lnx_init.c
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-02-26 12:26:06 +0100
committerMarge Bot <emma+marge@anholt.net>2024-02-29 10:04:34 +0000
commit4705fa933a522f2e8811dc31290514b10b6fe9f6 (patch)
tree3fbd0c3a799c69318766c464aa5a25309f31f789 /hw/xfree86/os-support/linux/lnx_init.c
parent96b9bbe9fa4f443a7e205d17a989cfbf52cf6eda (diff)
xfree86: drop unneeded wrapper xf86PrivsElevated()
It's just a dumb wrapper around PrivsElevated(), and also just called in few places, while others call PrivsElevated() directly - thus not needed and can be dropped. Note that it's also not called by drivers, so the export was unnecessary. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1324>
Diffstat (limited to 'hw/xfree86/os-support/linux/lnx_init.c')
-rw-r--r--hw/xfree86/os-support/linux/lnx_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/os-support/linux/lnx_init.c b/hw/xfree86/os-support/linux/lnx_init.c
index 111b3b4e4..4ea791a89 100644
--- a/hw/xfree86/os-support/linux/lnx_init.c
+++ b/hw/xfree86/os-support/linux/lnx_init.c
@@ -386,7 +386,7 @@ xf86ProcessArgument(int argc, char *argv[], int i)
if (!strcmp(argv[i], "-masterfd")) {
CHECK_FOR_REQUIRED_ARGUMENT();
- if (xf86PrivsElevated())
+ if (PrivsElevated())
FatalError("\nCannot specify -masterfd when server is setuid/setgid\n");
if (sscanf(argv[++i], "%d", &xf86DRMMasterFd) != 1) {
UseMsg();