Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/mkubootimage Sprinkle one more static and a bunch of...
details: https://anonhg.NetBSD.org/src/rev/1ac143dc3dae
branches: trunk
changeset: 769248:1ac143dc3dae
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Sep 04 20:35:07 2011 +0000
description:
Sprinkle one more static and a bunch of consts.
diffstat:
usr.bin/mkubootimage/mkubootimage.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 809e6a31fb12 -r 1ac143dc3dae usr.bin/mkubootimage/mkubootimage.c
--- a/usr.bin/mkubootimage/mkubootimage.c Sun Sep 04 20:31:00 2011 +0000
+++ b/usr.bin/mkubootimage/mkubootimage.c Sun Sep 04 20:35:07 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkubootimage.c,v 1.13 2011/09/04 20:31:00 joerg Exp $ */
+/* $NetBSD: mkubootimage.c,v 1.14 2011/09/04 20:35:07 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.13 2011/09/04 20:31:00 joerg Exp $");
+__RCSID("$NetBSD: mkubootimage.c,v 1.14 2011/09/04 20:35:07 joerg Exp $");
#include <sys/mman.h>
#include <sys/stat.h>
@@ -63,7 +63,7 @@
static char *image_name;
static uint32_t image_magic = IH_MAGIC;
-struct uboot_os {
+static const struct uboot_os {
enum uboot_image_os os;
const char *name;
} uboot_os[] = {
@@ -135,7 +135,7 @@
return "Unknown";
}
-static struct uboot_type {
+static const struct uboot_type {
enum uboot_image_type type;
const char *name;
} uboot_type[] = {
@@ -171,7 +171,7 @@
return "Unknown";
}
-static struct uboot_comp {
+static const struct uboot_comp {
enum uboot_image_comp comp;
const char *name;
} uboot_comp[] = {
Home |
Main Index |
Thread Index |
Old Index