Module Name: src Committed By: joerg Date: Tue Jan 10 23:39:33 UTC 2012
Modified Files: src/usr.sbin/npf/npfctl: npfctl.h src/usr.sbin/tprof: tprof.c Log Message: Use __dead To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/npf/npfctl/npfctl.h cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/tprof/tprof.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/npf/npfctl/npfctl.h diff -u src/usr.sbin/npf/npfctl/npfctl.h:1.8 src/usr.sbin/npf/npfctl/npfctl.h:1.9 --- src/usr.sbin/npf/npfctl/npfctl.h:1.8 Sun Jan 8 21:34:21 2012 +++ src/usr.sbin/npf/npfctl/npfctl.h Tue Jan 10 23:39:32 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: npfctl.h,v 1.8 2012/01/08 21:34:21 rmind Exp $ */ +/* $NetBSD: npfctl.h,v 1.9 2012/01/10 23:39:32 joerg Exp $ */ /*- * Copyright (c) 2009-2012 The NetBSD Foundation, Inc. @@ -85,7 +85,7 @@ typedef struct module_arg { npfvar_t * ma_opts; } module_arg_t; -void yyerror(const char *, ...) __printflike(1, 2); +void yyerror(const char *, ...) __printflike(1, 2) __dead; void * zalloc(size_t); void * xrealloc(void *, size_t); char * xstrdup(const char *); Index: src/usr.sbin/tprof/tprof.c diff -u src/usr.sbin/tprof/tprof.c:1.4 src/usr.sbin/tprof/tprof.c:1.5 --- src/usr.sbin/tprof/tprof.c:1.4 Mon Jan 26 05:53:10 2009 +++ src/usr.sbin/tprof/tprof.c Tue Jan 10 23:39:33 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: tprof.c,v 1.4 2009/01/26 05:53:10 yamt Exp $ */ +/* $NetBSD: tprof.c,v 1.5 2012/01/10 23:39:33 joerg Exp $ */ /*- * Copyright (c)2008 YAMAMOTO Takashi, @@ -28,7 +28,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: tprof.c,v 1.4 2009/01/26 05:53:10 yamt Exp $"); +__RCSID("$NetBSD: tprof.c,v 1.5 2012/01/10 23:39:33 joerg Exp $"); #endif /* not lint */ #include <sys/ioctl.h> @@ -53,7 +53,7 @@ __RCSID("$NetBSD: tprof.c,v 1.4 2009/01/ int devfd; int outfd; -static void +__dead static void usage(void) {