From dee2e14c6ebac12102256639fc9e53d21eb871b2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 19 Jun 2011 15:46:01 +0100 Subject: [PATCH] portability: warn if provided snprintf.c is used We don't have any visibility of changes to fix bugs in the snprintf which is supplied with secnet. Therefore at the very least we should print a warning if we turn out to use it, rather than perhaps silently using an ancient and perhaps-buggy implementation. Signed-off-by: Ian Jackson --- snprintf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snprintf.c b/snprintf.c index 86f42e9..c9ab8fc 100644 --- a/snprintf.c +++ b/snprintf.c @@ -279,6 +279,8 @@ */ +#warning Platform has no snprintf?! Please check included snprintf.c for sanity! + /* ============================================= */ /* NO USER SERVICABLE PARTS FOLLOWING THIS POINT */ -- 2.30.2