Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/mtree Use __dead and __printflike
details: https://anonhg.NetBSD.org/src/rev/e5b8788166cd
branches: trunk
changeset: 768985:e5b8788166cd
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Aug 29 20:37:43 2011 +0000
description:
Use __dead and __printflike
diffstat:
usr.sbin/mtree/extern.h | 5 ++---
usr.sbin/mtree/mtree.c | 7 +++----
2 files changed, 5 insertions(+), 7 deletions(-)
diffs (47 lines):
diff -r d909d66832ee -r e5b8788166cd usr.sbin/mtree/extern.h
--- a/usr.sbin/mtree/extern.h Mon Aug 29 20:30:36 2011 +0000
+++ b/usr.sbin/mtree/extern.h Mon Aug 29 20:37:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.31 2009/04/08 19:03:13 apb Exp $ */
+/* $NetBSD: extern.h,v 1.32 2011/08/29 20:37:43 joerg Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -60,8 +60,7 @@
void dump_nodes(const char *, NODE *, int);
void init_excludes(void);
int matchtags(NODE *);
-void mtree_err(const char *, ...)
- __attribute__((__format__(__printf__, 1, 2)));
+__dead __printflike(1,2) void mtree_err(const char *, ...);
const char *nodetype(u_int);
u_int parsekey(const char *, int *);
void parsetags(slist_t *, char *);
diff -r d909d66832ee -r e5b8788166cd usr.sbin/mtree/mtree.c
--- a/usr.sbin/mtree/mtree.c Mon Aug 29 20:30:36 2011 +0000
+++ b/usr.sbin/mtree/mtree.c Mon Aug 29 20:37:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mtree.c,v 1.36 2009/04/08 19:43:05 wiz Exp $ */
+/* $NetBSD: mtree.c,v 1.37 2011/08/29 20:37:43 joerg Exp $ */
/*-
* Copyright (c) 1989, 1990, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)mtree.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: mtree.c,v 1.36 2009/04/08 19:43:05 wiz Exp $");
+__RCSID("$NetBSD: mtree.c,v 1.37 2011/08/29 20:37:43 joerg Exp $");
#endif
#endif /* not lint */
@@ -63,8 +63,7 @@
rflag, sflag, tflag, uflag, Uflag;
char fullpath[MAXPATHLEN];
- int main(int, char **);
-static void usage(void);
+__dead static void usage(void);
int
main(int argc, char **argv)
Home |
Main Index |
Thread Index |
Old Index