From d1bf5582bdf8158aa32a64269152af2299463e2a Mon Sep 17 00:00:00 2001 From: Arthur David Olson Date: Mon, 24 Jan 2005 11:26:13 -0500 Subject: [PATCH] link to link warning SCCS-file: zic.c SCCS-SID: 7.119 --- zic.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zic.c b/zic.c index 2217330..a13c77c 100644 --- a/zic.c +++ b/zic.c @@ -579,6 +579,11 @@ _("%s: More than one -L option specified\n"), for (i = 0; i < nlinks; ++i) { eat(links[i].l_filename, links[i].l_linenum); dolink(links[i].l_from, links[i].l_to); + if (noise) + for (j = 0; j < nlinks; ++j) + if (strcmp(links[i].l_to, + links[j].l_from) == 0) + warning("link to link"); } if (lcltime != NULL) { eat("command line", 1);