Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/utoppya Sprinkle const. Use __dead.



details:   https://anonhg.NetBSD.org/src/rev/46f10eba1520
branches:  trunk
changeset: 769278:46f10eba1520
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Sep 05 18:11:53 2011 +0000

description:
Sprinkle const. Use __dead.

diffstat:

 usr.bin/utoppya/utoppya.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 0f87c8c3ecc9 -r 46f10eba1520 usr.bin/utoppya/utoppya.c
--- a/usr.bin/utoppya/utoppya.c Mon Sep 05 13:28:17 2011 +0000
+++ b/usr.bin/utoppya/utoppya.c Mon Sep 05 18:11:53 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: utoppya.c,v 1.4 2009/04/14 06:15:37 lukem Exp $        */
+/*     $NetBSD: utoppya.c,v 1.5 2011/09/05 18:11:53 joerg Exp $        */
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
 static void cmd_get(int, char **);
 static void cmd_put(int, char **);
 
-static struct toppy_command {
+static const struct toppy_command {
        const char *tc_cmd;
        void (*tc_handler)(int, char **);
 } toppy_commands[] = {
@@ -84,7 +84,7 @@
        {NULL,          NULL}
 };
 
-static void
+__dead static void
 usage(void)
 {
 
@@ -97,7 +97,7 @@
 int
 main(int argc, char *argv[])
 {
-       struct toppy_command *tc;
+       const struct toppy_command *tc;
        const char *devpath;
        int ch;
 



Home | Main Index | Thread Index | Old Index