Source-Changes-HG archive

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

[src/trunk]: src/games/sail add printf attributes.



details:   https://anonhg.NetBSD.org/src/rev/734c28b5c169
branches:  trunk
changeset: 768724:734c28b5c169
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Aug 25 16:18:28 2011 +0000

description:
add printf attributes.

diffstat:

 games/sail/pl_7.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 8383909cac67 -r 734c28b5c169 games/sail/pl_7.c
--- a/games/sail/pl_7.c Thu Aug 25 16:17:58 2011 +0000
+++ b/games/sail/pl_7.c Thu Aug 25 16:18:28 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pl_7.c,v 1.40 2010/08/06 09:14:40 dholland Exp $       */
+/*     $NetBSD: pl_7.c,v 1.41 2011/08/25 16:18:28 christos Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)pl_7.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: pl_7.c,v 1.40 2010/08/06 09:14:40 dholland Exp $");
+__RCSID("$NetBSD: pl_7.c,v 1.41 2011/08/25 16:18:28 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -238,7 +238,7 @@
 /*
  * Likewise but a printf.
  */
-static void
+static void __attribute__((__format__(__printf__, 6, 7)))
 mvselprintw(int y, int x0, int item, int curitem,
            size_t width, const char *fmt, ...)
 {
@@ -296,7 +296,7 @@
 /*
  * Complain briefly.
  */
-static void
+static void __attribute__((__format__(__printf__, 3, 4)))
 oops(int y, int x, const char *fmt, ...)
 {
        int oy, ox;



Home | Main Index | Thread Index | Old Index