Module Name: src
Committed By: joerg
Date: Sat Aug 27 17:38:16 UTC 2011
Modified Files:
src/sbin/gpt: add.c biosboot.c create.c destroy.c gpt.c label.c
migrate.c recover.c remove.c show.c
Log Message:
Use __dead
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sbin/gpt/add.c
cvs rdiff -u -r1.4 -r1.5 src/sbin/gpt/biosboot.c src/sbin/gpt/create.c \
src/sbin/gpt/migrate.c
cvs rdiff -u -r1.3 -r1.4 src/sbin/gpt/destroy.c src/sbin/gpt/recover.c
cvs rdiff -u -r1.14 -r1.15 src/sbin/gpt/gpt.c
cvs rdiff -u -r1.7 -r1.8 src/sbin/gpt/label.c
cvs rdiff -u -r1.5 -r1.6 src/sbin/gpt/remove.c
cvs rdiff -u -r1.6 -r1.7 src/sbin/gpt/show.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/gpt/add.c
diff -u src/sbin/gpt/add.c:1.10 src/sbin/gpt/add.c:1.11
--- src/sbin/gpt/add.c:1.10 Thu Jan 6 17:51:28 2011
+++ src/sbin/gpt/add.c Sat Aug 27 17:38:16 2011
@@ -29,7 +29,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/add.c,v 1.14 2006/06/22 22:05:28 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: add.c,v 1.10 2011/01/06 17:51:28 riz Exp $");
+__RCSID("$NetBSD: add.c,v 1.11 2011/08/27 17:38:16 joerg Exp $");
#endif
#include <sys/types.h>
@@ -52,7 +52,7 @@
const char addmsg[] = "add [-b lba] [-i index] [-s lba] [-t type] "
"device ...";
-static void
+__dead static void
usage_add(void)
{
Index: src/sbin/gpt/biosboot.c
diff -u src/sbin/gpt/biosboot.c:1.4 src/sbin/gpt/biosboot.c:1.5
--- src/sbin/gpt/biosboot.c:1.4 Wed Aug 17 12:27:50 2011
+++ src/sbin/gpt/biosboot.c Sat Aug 27 17:38:16 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: biosboot.c,v 1.4 2011/08/17 12:27:50 martin Exp $ */
+/* $NetBSD: biosboot.c,v 1.5 2011/08/27 17:38:16 joerg Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#ifdef __RCSID
-__RCSID("$NetBSD: biosboot.c,v 1.4 2011/08/17 12:27:50 martin Exp $");
+__RCSID("$NetBSD: biosboot.c,v 1.5 2011/08/27 17:38:16 joerg Exp $");
#endif
#include <sys/stat.h>
@@ -68,7 +68,7 @@
const char biosbootmsg[] = "biosboot [-c bootcode] [-i index] device ...";
-static void
+__dead static void
usage_biosboot(void)
{
fprintf(stderr, "usage: %s %s\n", getprogname(), biosbootmsg);
Index: src/sbin/gpt/create.c
diff -u src/sbin/gpt/create.c:1.4 src/sbin/gpt/create.c:1.5
--- src/sbin/gpt/create.c:1.4 Thu Jan 6 17:42:10 2011
+++ src/sbin/gpt/create.c Sat Aug 27 17:38:16 2011
@@ -29,7 +29,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/create.c,v 1.11 2005/08/31 01:47:19 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: create.c,v 1.4 2011/01/06 17:42:10 jakllsch Exp $");
+__RCSID("$NetBSD: create.c,v 1.5 2011/08/27 17:38:16 joerg Exp $");
#endif
#include <sys/types.h>
@@ -49,7 +49,7 @@
const char createmsg[] = "create [-fp] device ...";
-static void
+__dead static void
usage_create(void)
{
Index: src/sbin/gpt/migrate.c
diff -u src/sbin/gpt/migrate.c:1.4 src/sbin/gpt/migrate.c:1.5
--- src/sbin/gpt/migrate.c:1.4 Tue Dec 18 21:46:46 2007
+++ src/sbin/gpt/migrate.c Sat Aug 27 17:38:16 2011
@@ -29,7 +29,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/migrate.c,v 1.16 2005/09/01 02:42:52 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: migrate.c,v 1.4 2007/12/18 21:46:46 riz Exp $");
+__RCSID("$NetBSD: migrate.c,v 1.5 2011/08/27 17:38:16 joerg Exp $");
#endif
#include <sys/types.h>
@@ -62,7 +62,7 @@
const char migratemsg[] = "migrate [-fs] device ...";
-static void
+__dead static void
usage_migrate(void)
{
Index: src/sbin/gpt/destroy.c
diff -u src/sbin/gpt/destroy.c:1.3 src/sbin/gpt/destroy.c:1.4
--- src/sbin/gpt/destroy.c:1.3 Tue Dec 18 21:46:46 2007
+++ src/sbin/gpt/destroy.c Sat Aug 27 17:38:16 2011
@@ -29,7 +29,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/destroy.c,v 1.6 2005/08/31 01:47:19 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: destroy.c,v 1.3 2007/12/18 21:46:46 riz Exp $");
+__RCSID("$NetBSD: destroy.c,v 1.4 2011/08/27 17:38:16 joerg Exp $");
#endif
#include <sys/types.h>
@@ -48,7 +48,7 @@
const char destroymsg[] = "destroy [-r] device ...";
-static void
+__dead static void
usage_destroy(void)
{
Index: src/sbin/gpt/recover.c
diff -u src/sbin/gpt/recover.c:1.3 src/sbin/gpt/recover.c:1.4
--- src/sbin/gpt/recover.c:1.3 Tue Dec 18 21:46:47 2007
+++ src/sbin/gpt/recover.c Sat Aug 27 17:38:16 2011
@@ -29,7 +29,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/recover.c,v 1.8 2005/08/31 01:47:19 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: recover.c,v 1.3 2007/12/18 21:46:47 riz Exp $");
+__RCSID("$NetBSD: recover.c,v 1.4 2011/08/27 17:38:16 joerg Exp $");
#endif
#include <sys/types.h>
@@ -48,7 +48,7 @@
const char recovermsg[] = "recover device ...";
-static void
+__dead static void
usage_recover(void)
{
Index: src/sbin/gpt/gpt.c
diff -u src/sbin/gpt/gpt.c:1.14 src/sbin/gpt/gpt.c:1.15
--- src/sbin/gpt/gpt.c:1.14 Thu Jan 6 16:30:40 2011
+++ src/sbin/gpt/gpt.c Sat Aug 27 17:38:16 2011
@@ -31,7 +31,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/gpt.c,v 1.16 2006/07/07 02:44:23 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: gpt.c,v 1.14 2011/01/06 16:30:40 jakllsch Exp $");
+__RCSID("$NetBSD: gpt.c,v 1.15 2011/08/27 17:38:16 joerg Exp $");
#endif
#include <sys/param.h>
@@ -777,7 +777,7 @@
{ NULL, NULL }
};
-static void
+__dead static void
usage(void)
{
extern const char addmsg[], biosbootmsg[], createmsg[], destroymsg[];
Index: src/sbin/gpt/label.c
diff -u src/sbin/gpt/label.c:1.7 src/sbin/gpt/label.c:1.8
--- src/sbin/gpt/label.c:1.7 Thu Mar 12 22:59:03 2009
+++ src/sbin/gpt/label.c Sat Aug 27 17:38:16 2011
@@ -29,7 +29,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/label.c,v 1.3 2006/10/04 18:20:25 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: label.c,v 1.7 2009/03/12 22:59:03 dyoung Exp $");
+__RCSID("$NetBSD: label.c,v 1.8 2011/08/27 17:38:16 joerg Exp $");
#endif
#include <sys/types.h>
@@ -54,7 +54,7 @@
const char labelmsg2[] = "label [-b lba] [-i index] [-s lba]";
const char labelmsg3[] = " [-t uuid] <-l label | -f file> device ...";
-static void
+__dead static void
usage_label(void)
{
fprintf(stderr,
Index: src/sbin/gpt/remove.c
diff -u src/sbin/gpt/remove.c:1.5 src/sbin/gpt/remove.c:1.6
--- src/sbin/gpt/remove.c:1.5 Sat Feb 7 17:21:44 2009
+++ src/sbin/gpt/remove.c Sat Aug 27 17:38:16 2011
@@ -29,7 +29,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/remove.c,v 1.10 2006/10/04 18:20:25 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: remove.c,v 1.5 2009/02/07 17:21:44 uebayasi Exp $");
+__RCSID("$NetBSD: remove.c,v 1.6 2011/08/27 17:38:16 joerg Exp $");
#endif
#include <sys/types.h>
@@ -53,7 +53,7 @@
const char removemsg2[] = "remove [-b lba] [-i index] [-s lba] "
"[-t type] device ...";
-static void
+__dead static void
usage_remove(void)
{
Index: src/sbin/gpt/show.c
diff -u src/sbin/gpt/show.c:1.6 src/sbin/gpt/show.c:1.7
--- src/sbin/gpt/show.c:1.6 Thu Jan 6 16:30:40 2011
+++ src/sbin/gpt/show.c Sat Aug 27 17:38:16 2011
@@ -29,7 +29,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/show.c,v 1.14 2006/06/22 22:22:32 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: show.c,v 1.6 2011/01/06 16:30:40 jakllsch Exp $");
+__RCSID("$NetBSD: show.c,v 1.7 2011/08/27 17:38:16 joerg Exp $");
#endif
#include <sys/types.h>
@@ -49,7 +49,7 @@
const char showmsg[] = "show [-lu] device ...";
-static void
+__dead static void
usage_show(void)
{