Module Name:    src
Committed By:   joerg
Date:           Mon Sep  5 18:11:54 UTC 2011

Modified Files:
        src/usr.bin/utoppya: utoppya.c

Log Message:
Sprinkle const. Use __dead.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/utoppya/utoppya.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.bin/utoppya/utoppya.c
diff -u src/usr.bin/utoppya/utoppya.c:1.4 src/usr.bin/utoppya/utoppya.c:1.5
--- src/usr.bin/utoppya/utoppya.c:1.4	Tue Apr 14 06:15:37 2009
+++ src/usr.bin/utoppya/utoppya.c	Mon Sep  5 18:11:53 2011
@@ -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;
 

Reply via email to