This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

patch to kernel/mkunits.c


an unnecessary space is added to warning messages, in front of a unit type.
for example, "Warning: could not put 1 units in Norwegian country ( city)."

--- kernel/mkunits.c.orig       Tue May 21 02:17:35 2002
+++ kernel/mkunits.c    Tue May 21 02:18:52 2002
@@ -262,7 +262,7 @@
                totleft += numleft[u];
                if (numleft[u] > 0 && numlisted < 5) {
                    ++numfails;
-                   strcat(tmpbuf2, " ");
+                   strcat(tmpbuf2, (numfails == 1 ? "" : " "));
                    strcat(tmpbuf2, u_type_name(u));
                }
            }

--
MA Dunzi <mniw@sol.dti.ne.jp> http://tadalunch.s5.xrea.com/xconq/index.html


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]