summaryrefslogtreecommitdiffstatshomepage
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
commit69aa51d6949e1d3de01c2ea5805b786fa4d2822e (patch)
treed8b6c916031080fa2b42a778dbcab8234ce0626f
parent754ffee707861356b63ca9cf6d44f5d683edf9f3 (diff)
downloadmandoc-69aa51d6949e1d3de01c2ea5805b786fa4d2822e.tar.gz
mandoc-69aa51d6949e1d3de01c2ea5805b786fa4d2822e.tar.zst
mandoc-69aa51d6949e1d3de01c2ea5805b786fa4d2822e.zip
FreeBSD sys/types inclusion fixed.
-rw-r--r--term.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/term.c b/term.c
index ae0742cd..4d44ad0f 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.125 2009/11/12 05:50:12 kristaps Exp $ */
+/* $Id: term.c,v 1.126 2009/11/12 05:58:30 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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;
}