Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!husc6!mit-eddie!killer!walls From: walls@killer.UUCP (Monty Walls) Newsgroups: comp.os.minix Subject: oops in tsort & lorder Keywords: tsort.c lorder.c Message-ID: <4207@killer.UUCP> Date: 28 May 88 01:43:33 GMT Organization: The Unix(R) Connection, Dallas, Texas Lines: 36 -------------------------------------------------------------------------- I had 2 bugs brought to my attention in tsort & lorder. Enclosed is 2 very short diff's for lorder & tsort to fix these. -Monty Walls ---------------------------cut here----------------------------------------- echo x - lorder.c.diff gres '^X' '' > lorder.c.diff << '/' X21a22 X> * progname = argv[0] - should be first. 5/25/88 - mbeck X62a64 X> progname = argv[0]; X64d65 X< progname = argv[0]; / echo x - tsort.c.diff gres '^X' '' > tsort.c.diff << '/' X26a27 X> * readnode(): s1 & s2 should not keep using - 5/25/88 - mrw X125c126 X< if (finddep(n2->pred,s1) == (struct dependents *)NULL) { X--- X> if (finddep(n2->pred,n1->name) == (struct dependents *)NULL) { X136c137 X< if (finddep(n1->succ,s2) == (struct dependents *)NULL) { X--- X> if (finddep(n1->succ,n2->name) == (struct dependents *)NULL) { / ---------------------------end here----------------------------------------- Monty Walls MIS Division, Tech. Support Oklahoma Tax Commission 2501 N. Lincoln OKC, OK, 73194