[packages/ntp] - fix compile error

Elan Ruusamäe glen at pld-linux.org
Mon Aug 3 08:19:22 CEST 2015


On 02.08.2015 00:18, adwol wrote:
> +diff -ruNp ntp-4.2.8p3.orig/sntp/unity/unity.c ntp-4.2.8p3/sntp/unity/unity.c
> +--- ntp-4.2.8p3.orig/sntp/unity/unity.c	2015-06-24 16:45:12.000000000 +0200
> ++++ ntp-4.2.8p3/sntp/unity/unity.c	2015-08-01 23:09:13.789456521 +0200
> +@@ -327,7 +327,7 @@ void UnityConcludeTest(void)
> + 			}
> +
> + 			printf("| ");
> +-			printf(Unity.XFAILMessage);
> ++			printf("%s", Unity.XFAILMessage);
>

such stdlib changes can be actually written with puts:

puts(Unity.XFAILMessage);
or sometimes:
fputs(Unity.XFAILMessage, stderr);

-- 
glen



More information about the pld-devel-en mailing list