chiark / gitweb /
portability: warn if provided snprintf.c is used
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Jun 2011 14:46:01 +0000 (15:46 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Jun 2011 11:07:26 +0000 (12:07 +0100)
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 <ijackson@chiark.greenend.org.uk>
snprintf.c

index 86f42e9..c9ab8fc 100644 (file)
  */
 
 
+#warning Platform has no snprintf?! Please check included snprintf.c for sanity!
+
 \f
 /* ============================================= */
 /* NO USER SERVICABLE PARTS FOLLOWING THIS POINT */