]> mj.ucw.cz Git - xsv.git/commitdiff
Convert a couple of remaining putchar's to unlocked
authorMartin Mares <mj@ucw.cz>
Sun, 28 Oct 2012 13:13:50 +0000 (14:13 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 28 Oct 2012 13:13:50 +0000 (14:13 +0100)
xsv.c

diff --git a/xsv.c b/xsv.c
index b815c7205a774d09d88335496bde4bc7b38c584a..0d2d972b055544ddab45ad06132ed09ea4e2b8c6 100644 (file)
--- a/xsv.c
+++ b/xsv.c
@@ -450,7 +450,7 @@ static void table_write(struct format *fmt)
                                cw = fw;
                        }
                        while (len--)
-                               putchar(*p++);
+                               putchar_unlocked(*p++);
                }
                while (fw < cw) {
                        putchar_unlocked(' ');
@@ -475,7 +475,7 @@ static void table_write_grid(struct format *fmt, int pos UNUSED)
                putchar_unlocked('+');
                int w = fmt->table_sep + *intarray_nth(&column_widths, i);
                while (w--)
-                       putchar('-');
+                       putchar_unlocked('-');
        }
        putchar_unlocked('+');
        putchar_unlocked('\n');