Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin fix nested extern
details: https://anonhg.NetBSD.org/src/rev/e307f8969f6c
branches: trunk
changeset: 503371:e307f8969f6c
user: christos <christos%NetBSD.org@localhost>
date: Mon Feb 05 01:39:27 2001 +0000
description:
fix nested extern
diffstat:
usr.bin/cksum/cksum.c | 7 ++++---
usr.bin/crunch/crunchgen/crunchgen.c | 6 +++---
usr.bin/env/env.c | 5 +++--
3 files changed, 10 insertions(+), 8 deletions(-)
diffs (96 lines):
diff -r 7a45abfc13b0 -r e307f8969f6c usr.bin/cksum/cksum.c
--- a/usr.bin/cksum/cksum.c Mon Feb 05 01:37:33 2001 +0000
+++ b/usr.bin/cksum/cksum.c Mon Feb 05 01:39:27 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cksum.c,v 1.10 1997/10/17 11:36:59 lukem Exp $ */
+/* $NetBSD: cksum.c,v 1.11 2001/02/05 01:39:27 christos Exp $ */
/*-
* Copyright (c) 1997 Jason R. Thorpe. All rights reserved.
@@ -47,7 +47,7 @@
#if 0
static char sccsid[] = "@(#)cksum.c 8.2 (Berkeley) 4/28/95";
#endif
-__RCSID("$NetBSD: cksum.c,v 1.10 1997/10/17 11:36:59 lukem Exp $");
+__RCSID("$NetBSD: cksum.c,v 1.11 2001/02/05 01:39:27 christos Exp $");
#endif /* not lint */
#include <sys/cdefs.h>
@@ -70,6 +70,8 @@
void requiremd5 __P((const char *));
void usage __P((void));
+extern char *__progname;
+
int
main(argc, argv)
int argc;
@@ -80,7 +82,6 @@
char *fn;
int (*cfncn) __P((int, u_int32_t *, u_int32_t *));
void (*pfncn) __P((char *, u_int32_t, u_int32_t));
- extern char *__progname;
cfncn = NULL;
pfncn = NULL;
diff -r 7a45abfc13b0 -r e307f8969f6c usr.bin/crunch/crunchgen/crunchgen.c
--- a/usr.bin/crunch/crunchgen/crunchgen.c Mon Feb 05 01:37:33 2001 +0000
+++ b/usr.bin/crunch/crunchgen/crunchgen.c Mon Feb 05 01:39:27 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crunchgen.c,v 1.19 2000/11/01 07:16:02 garbled Exp $ */
+/* $NetBSD: crunchgen.c,v 1.20 2001/02/05 01:40:51 christos Exp $ */
/*
* Copyright (c) 1994 University of Maryland
* All Rights Reserved.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: crunchgen.c,v 1.19 2000/11/01 07:16:02 garbled Exp $");
+__RCSID("$NetBSD: crunchgen.c,v 1.20 2001/02/05 01:40:51 christos Exp $");
#endif
#include <stdlib.h>
@@ -112,6 +112,7 @@
void parse_conf_file(void);
void gen_outputs(void);
+extern char *crunched_skel[];
int main(int argc, char **argv)
{
@@ -710,7 +711,6 @@
void gen_output_cfile(void)
{
- extern char *crunched_skel[];
char **cp;
FILE *outcf;
prog_t *p;
diff -r 7a45abfc13b0 -r e307f8969f6c usr.bin/env/env.c
--- a/usr.bin/env/env.c Mon Feb 05 01:37:33 2001 +0000
+++ b/usr.bin/env/env.c Mon Feb 05 01:39:27 2001 +0000
@@ -39,7 +39,7 @@
#ifndef lint
/*static char sccsid[] = "@(#)env.c 8.3 (Berkeley) 4/2/94";*/
-__RCSID("$NetBSD: env.c,v 1.13 2000/04/14 06:11:07 simonb Exp $");
+__RCSID("$NetBSD: env.c,v 1.14 2001/02/05 01:41:51 christos Exp $");
#endif /* not lint */
#include <err.h>
@@ -53,12 +53,13 @@
int main __P((int, char **));
static void usage __P((void));
+extern char **environ;
+
int
main(argc, argv)
int argc;
char **argv;
{
- extern char **environ;
char **ep, *p;
char *cleanenv[1];
int ch;
Home |
Main Index |
Thread Index |
Old Index