Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/pvctxctl Localize variables. Use __dead
details: https://anonhg.NetBSD.org/src/rev/bdfc636bdc78
branches: trunk
changeset: 769074:bdfc636bdc78
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Aug 30 21:28:27 2011 +0000
description:
Localize variables. Use __dead
diffstat:
usr.sbin/pvctxctl/pvctxctl.c | 23 +++++++++++------------
1 files changed, 11 insertions(+), 12 deletions(-)
diffs (51 lines):
diff -r b9ea07b6d748 -r bdfc636bdc78 usr.sbin/pvctxctl/pvctxctl.c
--- a/usr.sbin/pvctxctl/pvctxctl.c Tue Aug 30 21:27:00 2011 +0000
+++ b/usr.sbin/pvctxctl/pvctxctl.c Tue Aug 30 21:28:27 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pvctxctl.c,v 1.6 2009/04/19 08:53:37 lukem Exp $ */
+/* $NetBSD: pvctxctl.c,v 1.7 2011/08/30 21:28:27 joerg Exp $ */
/*
* Copyright (C) 1998
@@ -42,7 +42,7 @@
#include <net/if_atm.h>
static int str2vc(char *str, int *vpi, int *vci);
-static void usage(void);
+__dead static void usage(void);
static void
usage(void)
@@ -53,16 +53,6 @@
exit(1);
}
-int vpi = 0;
-int vci = 0;
-int joint_vpi = 0;
-int joint_vci = 0;
-int pcr = 0;
-int llcsnap = ATM_PH_LLCSNAP;
-int getinfo = 1;
-int subinterface = 0;
-int verbose = 1;
-
int
main(int argc, char **argv)
{
@@ -70,6 +60,15 @@
int s, ch;
long bandwidth;
char *if_name, *cp;
+ int vpi = 0;
+ int vci = 0;
+ int joint_vpi = 0;
+ int joint_vci = 0;
+ int pcr = 0;
+ int llcsnap = ATM_PH_LLCSNAP;
+ int getinfo = 1;
+ int subinterface = 0;
+ int verbose = 1;
if (argc < 2)
usage();
Home |
Main Index |
Thread Index |
Old Index