Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/installboot Use attribute printf.



details:   https://anonhg.NetBSD.org/src/rev/17b4a14d1dad
branches:  trunk
changeset: 451263:17b4a14d1dad
user:      maya <maya%NetBSD.org@localhost>
date:      Sun May 12 13:47:09 2019 +0000

description:
Use attribute printf.

Helps clang builds. From a.rin.

diffstat:

 usr.sbin/installboot/evboards.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d801ed5109d0 -r 17b4a14d1dad usr.sbin/installboot/evboards.c
--- a/usr.sbin/installboot/evboards.c   Sun May 12 13:40:19 2019 +0000
+++ b/usr.sbin/installboot/evboards.c   Sun May 12 13:47:09 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: evboards.c,v 1.1 2019/05/07 05:02:42 thorpej Exp $     */
+/*     $NetBSD: evboards.c,v 1.2 2019/05/12 13:47:09 maya Exp $        */
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(__lint)
-__RCSID("$NetBSD: evboards.c,v 1.1 2019/05/07 05:02:42 thorpej Exp $");
+__RCSID("$NetBSD: evboards.c,v 1.2 2019/05/12 13:47:09 maya Exp $");
 #endif  /* !__lint */
 
 #include <sys/types.h>
@@ -331,7 +331,7 @@
  *     Build a path into the given buffer with the specified
  *     format.  Returns NULL if the path won't fit.
  */
-static const char *
+static __printflike(3,4) const char *
 make_path(char *buf, size_t bufsize, const char *fmt, ...)
 {
        va_list ap;



Home | Main Index | Thread Index | Old Index