Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/config Fix bug in previous; allprefixes didn't work...



details:   https://anonhg.NetBSD.org/src/rev/36177702d429
branches:  trunk
changeset: 474521:36177702d429
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jul 09 18:46:09 1999 +0000

description:
Fix bug in previous; allprefixes didn't work if there were multiple prefixes.

diffstat:

 usr.sbin/config/util.c |  15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diffs (29 lines):

diff -r 688134fdfb3e -r 36177702d429 usr.sbin/config/util.c
--- a/usr.sbin/config/util.c    Fri Jul 09 18:45:31 1999 +0000
+++ b/usr.sbin/config/util.c    Fri Jul 09 18:46:09 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.c,v 1.9 1999/07/09 09:53:01 mrg Exp $     */
+/*     $NetBSD: util.c,v 1.10 1999/07/09 18:46:09 thorpej Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -152,16 +152,9 @@
 
        prefixes = pf->pf_next;
 
-       /*
-        * Once we're done with it, put it on the allprefixes list.
-        */
-       if (allprefixes) {
-               allprefixes = pf;
-               pf->pf_next = NULL;
-       } else {
-               pf->pf_next = allprefixes;
-               allprefixes = pf;
-       }
+       /* Remember this prefix for emitting -I... directives later. */
+       pf->pf_next = allprefixes;
+       allprefixes = pf;
 }
 
 /*



Home | Main Index | Thread Index | Old Index