summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-12 05:58:30 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-12 05:58:30 +0000
commiteca9b44deb6e6fe964847567a5437b3a46dd2635 (patch)
tree00ef49bd0c2fb11c98744564a0c58eeeb349a43f /term.c
parent98a07e7455f567f7e0ec8f62788f883a8efd7eae (diff)
downloadmandoc-eca9b44deb6e6fe964847567a5437b3a46dd2635.tar.gz
FreeBSD sys/types inclusion fixed.
Diffstat (limited to 'term.c')
-rw-r--r--term.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/term.c b/term.c
index 86d53ed7..057d5e2f 100644
--- a/term.c
+++ b/term.c
@@ -14,6 +14,8 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <sys/types.h>
+
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
@@ -527,7 +529,7 @@ buffera(struct termp *p, const char *word, size_t sz)
if (p->col + sz >= p->maxcols)
adjbuf(p, p->col + sz);
- memcpy(&p->buf[p->col], word, sz);
+ memcpy(&p->buf[(int)p->col], word, sz);
p->col += sz;
}
@@ -539,7 +541,7 @@ bufferc(struct termp *p, char c)
if (p->col + 1 >= p->maxcols)
adjbuf(p, p->col + 1);
- p->buf[p->col++] = c;
+ p->buf[(int)p->col++] = c;
}