comparison output.c @ 103:343af355df1b

Pass -Wunused.
author David A. Holland
date Tue, 11 Jun 2013 11:00:01 -0400
parents 27c9aafcaca1
children 1cda505ddc78
comparison
equal deleted inserted replaced
102:9b859d40640a 103:343af355df1b
94 } 94 }
95 95
96 96
97 static 97 static
98 void 98 void
99 filter_output(const struct place *p, const char *buf, size_t len) 99 filter_output(const char *buf, size_t len)
100 { 100 {
101 size_t pos, start; 101 size_t pos, start;
102 bool inesc = false; 102 bool inesc = false;
103 bool inquote = false; 103 bool inquote = false;
104 104
169 } 169 }
170 memcpy(linebuf + linebufpos, buf, len); 170 memcpy(linebuf + linebufpos, buf, len);
171 linebufpos += len; 171 linebufpos += len;
172 172
173 if (len == 1 && buf[0] == '\n') { 173 if (len == 1 && buf[0] == '\n') {
174 filter_output(&linebufplace, linebuf, linebufpos); 174 filter_output(linebuf, linebufpos);
175 linebufpos = 0; 175 linebufpos = 0;
176 } 176 }
177 } 177 }
178 178
179 void 179 void