]> source.dussan.org Git - tigervnc.git/commit
vncserver: Display check should avoid duplicate code
authorMark Mielke <mark.mielke@gmail.com>
Wed, 29 Jul 2020 04:11:28 +0000 (00:11 -0400)
committerMark Mielke <mark.mielke@gmail.com>
Wed, 29 Jul 2020 04:32:46 +0000 (00:32 -0400)
commitcc362f77987bb32ebeffcb4aa2c7e90b7a8f6914
tree68b3dcc7212cdedf69f6904fbb5775433b4aa63a
parented62b9f81aae1ba8d266f8d84c292e57e2a2aed5
vncserver: Display check should avoid duplicate code

The display check had duplicate code to first check if the X11 port is
not in use, and then check that the RFB port is not in use. Eliminate
the duplicate code by using a for-loop.
unix/vncserver/vncserver.in