Module Name:    othersrc
Committed By:   dholland
Date:           Sat Mar 23 21:35:44 UTC 2013

Modified Files:
        othersrc/usr.bin/dholland-make2: job.c

Log Message:
Update some #if 0'd code to still compile.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 othersrc/usr.bin/dholland-make2/job.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: othersrc/usr.bin/dholland-make2/job.c
diff -u othersrc/usr.bin/dholland-make2/job.c:1.4 othersrc/usr.bin/dholland-make2/job.c:1.5
--- othersrc/usr.bin/dholland-make2/job.c:1.4	Tue Mar  5 04:27:27 2013
+++ othersrc/usr.bin/dholland-make2/job.c	Sat Mar 23 21:35:44 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: job.c,v 1.4 2013/03/05 04:27:27 dholland Exp $	*/
+/*	$NetBSD: job.c,v 1.5 2013/03/23 21:35:44 dholland Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -149,7 +149,7 @@
 #include "trace.h"
 # define STATIC static
 
-MAKE_RCSID("$NetBSD: job.c,v 1.4 2013/03/05 04:27:27 dholland Exp $");
+MAKE_RCSID("$NetBSD: job.c,v 1.5 2013/03/23 21:35:44 dholland Exp $");
 
 /*
  * error handling variables
@@ -1920,10 +1920,13 @@ JobRun(GNode *targ)
      * and .INTERRUPT job in the parallel job module. This has
      * the nice side effect that it avoids a lot of other problems.
      */
-    Lst lst = Lst_Init(FALSE);
-    Lst_AtEnd(lst, targ);
-    (void)Make_Run(lst);
-    Lst_Destroy(lst, NULL);
+    GList list;
+
+    glist_init(&list);
+    glist_add(&list, targ, NULL);
+    (void)Make_Run(&list);
+    glist_setsize(&list, 0);
+    glist_cleanup(&list);
     JobStart(targ, JOB_SPECIAL);
     while (jobTokensRunning) {
 	Job_CatchOutput();

Reply via email to