Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/mkubootimage static + __dead



details:   https://anonhg.NetBSD.org/src/rev/809e6a31fb12
branches:  trunk
changeset: 769247:809e6a31fb12
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Sep 04 20:31:00 2011 +0000

description:
static + __dead

diffstat:

 usr.bin/mkubootimage/mkubootimage.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 70f05e4fc69c -r 809e6a31fb12 usr.bin/mkubootimage/mkubootimage.c
--- a/usr.bin/mkubootimage/mkubootimage.c       Sun Sep 04 20:29:12 2011 +0000
+++ b/usr.bin/mkubootimage/mkubootimage.c       Sun Sep 04 20:31:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkubootimage.c,v 1.12 2011/08/06 11:12:05 wiz Exp $ */
+/* $NetBSD: mkubootimage.c,v 1.13 2011/09/04 20:31:00 joerg Exp $ */
 
 /*-
  * Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: mkubootimage.c,v 1.12 2011/08/06 11:12:05 wiz Exp $");
+__RCSID("$NetBSD: mkubootimage.c,v 1.13 2011/09/04 20:31:00 joerg Exp $");
 
 #include <sys/mman.h>
 #include <sys/stat.h>
@@ -99,7 +99,7 @@
        return "Unknown";
 }
 
-struct uboot_arch {
+static const struct uboot_arch {
        enum uboot_image_arch arch;
        const char *name;
 } uboot_arch[] = {
@@ -135,7 +135,7 @@
        return "Unknown";
 }
 
-struct uboot_type {
+static struct uboot_type {
        enum uboot_image_type type;
        const char *name;
 } uboot_type[] = {
@@ -171,7 +171,7 @@
        return "Unknown";
 }
 
-struct uboot_comp {
+static struct uboot_comp {
        enum uboot_image_comp comp;
        const char *name;
 } uboot_comp[] = {
@@ -208,7 +208,7 @@
        return "Unknown";
 }
 
-static void
+__dead static void
 usage(void)
 {
        fprintf(stderr, "usage: mkubootimage -A <arm|mips|mips64|powerpc>");



Home | Main Index | Thread Index | Old Index