This is the mail archive of the
xconq7@sources.redhat.com
mailing list for the Xconq project.
patch to kernel/mkunits.c
- From: mniw at sol dot dti dot ne dot jp (mniw)
- To: xconq7 at sources dot redhat dot com
- Date: Tue, 21 May 2002 02:37:43 +0900 (JST)
- Subject: 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