svn commit: r315692 - head/tools/test/ppsapi

Ian Lepore ian at FreeBSD.org
Tue Mar 21 22:21:31 UTC 2017


Author: ian
Date: Tue Mar 21 22:21:29 2017
New Revision: 315692
URL: https://svnweb.freebsd.org/changeset/base/315692

Log:
  Eliminate a "format string is not a string literal" warning.

Modified:
  head/tools/test/ppsapi/ppsapitest.c

Modified: head/tools/test/ppsapi/ppsapitest.c
==============================================================================
--- head/tools/test/ppsapi/ppsapitest.c	Tue Mar 21 22:09:00 2017	(r315691)
+++ head/tools/test/ppsapi/ppsapitest.c	Tue Mar 21 22:21:29 2017	(r315692)
@@ -72,7 +72,7 @@ main(int argc, char **argv)
 	if (argc > 0) {
 		fd = open(argv[0], O_RDONLY);
 		if (fd < 0) 
-			err(1, argv[0]);
+			err(1, "%s", argv[0]);
 	} else {
 		fd = 0;
 	}


More information about the svn-src-all mailing list