Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/find fixed nested externs



details:   https://anonhg.NetBSD.org/src/rev/09d1984c7f9f
branches:  trunk
changeset: 503376:09d1984c7f9f
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 05 01:53:48 2001 +0000

description:
fixed nested externs

diffstat:

 usr.bin/find/function.c |  23 ++++++-----------------
 1 files changed, 6 insertions(+), 17 deletions(-)

diffs (100 lines):

diff -r fadb9434268c -r 09d1984c7f9f usr.bin/find/function.c
--- a/usr.bin/find/function.c   Mon Feb 05 01:51:52 2001 +0000
+++ b/usr.bin/find/function.c   Mon Feb 05 01:53:48 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: function.c,v 1.34 2000/10/10 14:30:41 enami Exp $      */
+/*     $NetBSD: function.c,v 1.35 2001/02/05 01:53:48 christos Exp $   */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "from: @(#)function.c   8.10 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: function.c,v 1.34 2000/10/10 14:30:41 enami Exp $");
+__RCSID("$NetBSD: function.c,v 1.35 2001/02/05 01:53:48 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -113,6 +113,10 @@
 static PLAN   *c_regex_common __P((char ***, int, enum ntype, int));
 static PLAN   *palloc __P((enum ntype, int (*) __P((PLAN *, FTSENT *))));
 
+extern int dotfd;
+extern FTS *tree;
+extern time_t now;
+
 /*
  * find_parsenum --
  *     Parse a string of the form [+-]# and return the value.
@@ -177,8 +181,6 @@
        PLAN *plan;
        FTSENT *entry;
 {
-       extern time_t now;
-
        COMPARE((now - entry->fts_statp->st_atime +
            SECSPERMIN - 1) / SECSPERMIN, plan->t_data);
 }
@@ -210,8 +212,6 @@
        PLAN *plan;
        FTSENT *entry;
 {
-       extern time_t now;
-
        COMPARE((now - entry->fts_statp->st_atime +
            SECSPERDAY - 1) / SECSPERDAY, plan->t_data);
 }
@@ -243,8 +243,6 @@
        PLAN *plan;
        FTSENT *entry;
 {
-       extern time_t now;
-
        COMPARE((now - entry->fts_statp->st_ctime +
            SECSPERMIN - 1) / SECSPERMIN, plan->t_data);
 }
@@ -276,8 +274,6 @@
        PLAN *plan;
        FTSENT *entry;
 {
-       extern time_t now;
-
        COMPARE((now - entry->fts_statp->st_ctime +
            SECSPERDAY - 1) / SECSPERDAY, plan->t_data);
 }
@@ -342,7 +338,6 @@
        PLAN *plan;
        FTSENT *entry;
 {
-       extern int dotfd;
        int cnt;
        pid_t pid;
        int status;
@@ -734,8 +729,6 @@
        PLAN *plan;
        FTSENT *entry;
 {
-       extern time_t now;
-
        COMPARE((now - entry->fts_statp->st_mtime + SECSPERMIN - 1) /
            SECSPERMIN, plan->t_data);
 }
@@ -767,8 +760,6 @@
        PLAN *plan;
        FTSENT *entry;
 {
-       extern time_t now;
-
        COMPARE((now - entry->fts_statp->st_mtime + SECSPERDAY - 1) /
            SECSPERDAY, plan->t_data);
 }
@@ -1072,8 +1063,6 @@
        PLAN *plan;
        FTSENT *entry;
 {
-       extern FTS *tree;
-
        if (fts_set(tree, entry, FTS_SKIP))
                err(1, "%s", entry->fts_path);
        return (1);



Home | Main Index | Thread Index | Old Index