summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xserver/hw/xfree86/os-support/shared/posix_tty.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/xserver/hw/xfree86/os-support/shared/posix_tty.c b/xserver/hw/xfree86/os-support/shared/posix_tty.c
index 7491d3410..ff3724f78 100644
--- a/xserver/hw/xfree86/os-support/shared/posix_tty.c
+++ b/xserver/hw/xfree86/os-support/shared/posix_tty.c
@@ -128,7 +128,7 @@ xf86OpenSerial(XF86OptionPtr options)
#ifndef X_PRIVSEP
SYSCALL(fd = open(dev, O_RDWR | O_NONBLOCK));
#else
- fd = priv_open_device (dev);
+ fd = priv_open_device (dev);
#endif
if (fd == -1) {
xf86Msg(X_ERROR,
@@ -166,11 +166,7 @@ xf86OpenSerial(XF86OptionPtr options)
return -1;
}
-#ifndef X_PRIVSEP
SYSCALL(i = fcntl(fd, F_GETFL, 0));
-#else
- fd = priv_open_device (dev);
-#endif
if (i == -1) {
SYSCALL(close(fd));
free(dev);