From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Tue, 11 Oct 2022 20:11:36 +0000 (+0100) Subject: Remove the cause of a warning from clang on FreeBSD. X-Git-Tag: 4.1-rc3~1^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93c1f1ae3759c71550dbd6ced09640ecac1db15b;p=thirdparty%2Fshairport-sync.git Remove the cause of a warning from clang on FreeBSD. --- diff --git a/shairport.c b/shairport.c index 2d9c71cd..03023a0c 100644 --- a/shairport.c +++ b/shairport.c @@ -1690,13 +1690,10 @@ void display_config(int argc, char **argv) { if (argc != 0) { fprintf(stderr, "\nCommand Line:\n"); int i; - for (i = 0; i < argc; i++) { - fprintf(stderr, argv[i]); - if (i == argc-1) - fprintf(stderr, "\n"); - else - fprintf(stderr, " "); + for (i = 0; i < argc - 1; i++) { + fprintf(stderr, "%s ", argv[i]); } + fprintf(stderr, "%s\n", argv[argc]); } if (config.cfg == NULL)