Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/xorgxrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt335672 <30179339+matt335672@users.noreply.github.com>2022-09-05 12:41:29 +0300
committerGitHub <noreply@github.com>2022-09-05 12:41:29 +0300
commit65d9a405af80d697ec5226912633a926bdb9c9d7 (patch)
treec10f4b990e30f1414e8674fd815317df97282e2b
parent715b430bcd28d6aa38f32945f82353b3273b1213 (diff)
parent211fc48fec552841bf3762c302076650088a4ee9 (diff)
Merge pull request #228 from a1346054/fixes
Simple maintenance improvements
-rw-r--r--module/rdpClientCon.c2
-rw-r--r--module/rdpImageText8.c2
-rwxr-xr-xscripts/display_test_logs10
-rwxr-xr-xscripts/install_xorgxrdp_build_dependencies_with_apt.sh2
-rw-r--r--tests/yuv2rgb/yuv2rgb_speed.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/module/rdpClientCon.c b/module/rdpClientCon.c
index cd1d2f9..e4e0317 100644
--- a/module/rdpClientCon.c
+++ b/module/rdpClientCon.c
@@ -693,7 +693,7 @@ rdpClientConAllocateSharedMemory(rdpClientCon *clientCon, int bytes)
clientCon->shmemid));
return;
}
-
+
if (clientCon->shmemptr != 0)
{
shmdt(clientCon->shmemptr);
diff --git a/module/rdpImageText8.c b/module/rdpImageText8.c
index efaa430..121824b 100644
--- a/module/rdpImageText8.c
+++ b/module/rdpImageText8.c
@@ -30,7 +30,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
/* this should be before all X11 .h files */
#include <xorg-server.h>
#include <xorgVersion.h>
-
+
/* all driver need this */
#include <xf86.h>
#include <xf86_OSproc.h>
diff --git a/scripts/display_test_logs b/scripts/display_test_logs
index d00e9c4..82b9f9f 100755
--- a/scripts/display_test_logs
+++ b/scripts/display_test_logs
@@ -3,14 +3,14 @@
# Display any logs in the tests folder
# Move to the project root directory
-if cd `dirname $0`/.. ; then
+if cd "$(dirname "$0")/.."; then
found=
for f in tests/*.log; do
- if [ -f $f ]; then
+ if [ -f "$f" ]; then
echo
- echo === $f ===
+ echo "=== $f ==="
echo
- cat $f
+ cat "$f"
found=1
fi
done
@@ -19,4 +19,4 @@ if cd `dirname $0`/.. ; then
fi
fi
-exit $?
+exit "$?"
diff --git a/scripts/install_xorgxrdp_build_dependencies_with_apt.sh b/scripts/install_xorgxrdp_build_dependencies_with_apt.sh
index 57acbf4..d4cc943 100755
--- a/scripts/install_xorgxrdp_build_dependencies_with_apt.sh
+++ b/scripts/install_xorgxrdp_build_dependencies_with_apt.sh
@@ -44,7 +44,7 @@ in
;;
*)
echo "unsupported architecture: $ARCH"
- exit 1;
+ exit 1
;;
esac
diff --git a/tests/yuv2rgb/yuv2rgb_speed.c b/tests/yuv2rgb/yuv2rgb_speed.c
index b4d484f..0298630 100644
--- a/tests/yuv2rgb/yuv2rgb_speed.c
+++ b/tests/yuv2rgb/yuv2rgb_speed.c
@@ -80,7 +80,7 @@ yuv to rgb speed testing
_Y = ( ((1053 * ((_R) << 4)) >> 16) + ((2064 * ((_G) << 4)) >> 16) + (( 401 * ((_B) << 4)) >> 16)) + 16; \
_U = ( ((1798 * ((_B) << 4)) >> 16) - (( 606 * ((_R) << 4)) >> 16) - ((1192 * ((_G) << 4)) >> 16)) + 128; \
_V = ( ((1798 * ((_R) << 4)) >> 16) - ((1507 * ((_G) << 4)) >> 16) - (( 291 * ((_B) << 4)) >> 16)) + 128;
-
+
/******************************************************************************/
static int
a8r8g8b8_to_nv12_box(char *s8, int src_stride,
@@ -173,7 +173,7 @@ a8r8g8b8_to_nv12_box(char *s8, int src_stride,
}
}
- return 0;
+ return 0;
}
int output_params(void)