From 29257a7ccd0b0e1c547f952739b608de5fbbc98b Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Fri, 2 Sep 2022 23:03:47 +0000 Subject: [PATCH 1/3] avoid problem if path contains whitespace --- scripts/display_test_logs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/display_test_logs b/scripts/display_test_logs index d00e9c43..82b9f9f0 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 "$?" From 770015e870894f87c6efae036be07c25906ced78 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Fri, 2 Sep 2022 23:07:20 +0000 Subject: [PATCH 2/3] remove excess ; --- scripts/install_xorgxrdp_build_dependencies_with_apt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_xorgxrdp_build_dependencies_with_apt.sh b/scripts/install_xorgxrdp_build_dependencies_with_apt.sh index 57acbf4d..d4cc9437 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 From c91251d5727cd8b0ad50d48db9509d480cae9846 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Fri, 2 Sep 2022 22:54:07 +0000 Subject: [PATCH 3/3] trim trailing whitespace --- module/rdpImageText8.c | 2 +- tests/yuv2rgb/yuv2rgb_speed.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/rdpImageText8.c b/module/rdpImageText8.c index efaa4307..121824bb 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 #include - + /* all driver need this */ #include #include diff --git a/tests/yuv2rgb/yuv2rgb_speed.c b/tests/yuv2rgb/yuv2rgb_speed.c index b4d484fe..0298630a 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)