Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/sysctl fix nested extern.
details: https://anonhg.NetBSD.org/src/rev/aad8671c5e39
branches: trunk
changeset: 503322:aad8671c5e39
user: christos <christos%NetBSD.org@localhost>
date: Sun Feb 04 21:13:12 2001 +0000
description:
fix nested extern.
diffstat:
sbin/sysctl/sysctl.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r f5f60b72d5e5 -r aad8671c5e39 sbin/sysctl/sysctl.c
--- a/sbin/sysctl/sysctl.c Sun Feb 04 21:11:47 2001 +0000
+++ b/sbin/sysctl/sysctl.c Sun Feb 04 21:13:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysctl.c,v 1.43 2001/01/09 21:31:02 fvdl Exp $ */
+/* $NetBSD: sysctl.c,v 1.44 2001/02/04 21:13:12 christos Exp $ */
/*
* Copyright (c) 1993
@@ -44,7 +44,7 @@
#if 0
static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: sysctl.c,v 1.43 2001/01/09 21:31:02 fvdl Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.44 2001/02/04 21:13:12 christos Exp $");
#endif
#endif /* not lint */
@@ -125,6 +125,7 @@
struct ctlname procname[] = { {0, 0}, {"curproc", CTLTYPE_NODE} };
char names[BUFSIZ];
+extern char *__progname;
struct list {
struct ctlname *list;
@@ -1160,8 +1161,6 @@
static void
usage()
{
- extern char *__progname;
-
(void)fprintf(stderr, "Usage:\t%s %s\n\t%s %s\n\t%s %s\n\t%s %s\n\t%s %s\n",
__progname, "[-n] variable ...",
__progname, "[-n] -w variable=value ...",
Home |
Main Index |
Thread Index |
Old Index