Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/calendar Don't declare 'extern opt*' getopt variables.



details:   https://anonhg.NetBSD.org/src/rev/9d3dbd5aede3
branches:  trunk
changeset: 484876:9d3dbd5aede3
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Apr 14 06:07:14 2000 +0000

description:
Don't declare 'extern opt*' getopt variables.
Don't need to declare __progname in getmmdd() - it's already done earlier
in this file.

diffstat:

 usr.bin/calendar/calendar.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 3faabc338514 -r 9d3dbd5aede3 usr.bin/calendar/calendar.c
--- a/usr.bin/calendar/calendar.c       Fri Apr 14 05:58:01 2000 +0000
+++ b/usr.bin/calendar/calendar.c       Fri Apr 14 06:07:14 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: calendar.c,v 1.21 1999/11/09 15:06:34 drochner Exp $   */
+/*     $NetBSD: calendar.c,v 1.22 2000/04/14 06:07:14 simonb Exp $     */
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)calendar.c 8.4 (Berkeley) 1/7/95";
 #endif
-__RCSID("$NetBSD: calendar.c,v 1.21 1999/11/09 15:06:34 drochner Exp $");
+__RCSID("$NetBSD: calendar.c,v 1.22 2000/04/14 06:07:14 simonb Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -98,7 +98,6 @@
        int argc;
        char *argv[];
 {
-       extern int optind;
        int ch;
        const char *caldir;
 
@@ -467,7 +466,6 @@
 void
 getmmdd(struct tm *tp, char *ds)
 {
-       extern char *__progname;
        int ok = FALSE;
        struct tm ttm;
 



Home | Main Index | Thread Index | Old Index