aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-03-15 16:23:51 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-03-15 16:23:51 +0000
commit3572d7e4773e34f2d039d1436af1c91795887f04 (patch)
treedf3354c5fd7a8a37527b23a9d8ec160a39fe37c8 /roff.c
parentef0353dfc9e7fa3b8dd811c3b71e0e3af38aa552 (diff)
downloadmandoc-3572d7e4773e34f2d039d1436af1c91795887f04.tar.gz
mandoc-3572d7e4773e34f2d039d1436af1c91795887f04.tar.zst
mandoc-3572d7e4773e34f2d039d1436af1c91795887f04.zip
Make lint shut up a little bit.
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/roff.c b/roff.c
index 6162bb2c..7e3af4c3 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.126 2011/02/09 09:05:52 kristaps Exp $ */
+/* $Id: roff.c,v 1.127 2011/03/15 16:23:51 kristaps Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -600,7 +600,7 @@ roff_parse(struct roff *r, const char *buf, int *pos)
t = (r->current_string = roff_getstrn(r, mac, maclen))
? ROFF_USERDEF : roff_hash_find(mac, maclen);
- *pos += maclen;
+ *pos += (int)maclen;
while (buf[*pos] && ' ' == buf[*pos])
(*pos)++;
@@ -1137,7 +1137,7 @@ roff_rm(ROFF_ARGS)
cp = *bufp + pos;
while ('\0' != *cp) {
- name = roff_getname(r, &cp, ln, cp - *bufp);
+ name = roff_getname(r, &cp, ln, (int)(cp - *bufp));
if ('\0' != *name)
roff_setstr(r, name, NULL, 0);
}
@@ -1372,7 +1372,7 @@ roff_setstr(struct roff *r, const char *name, const char *string,
* One additional byte for the '\n' in multiline mode,
* and one for the terminating '\0'.
*/
- newch = strlen(string) + (multiline ? 2 : 1);
+ newch = strlen(string) + (multiline ? 2u : 1u);
if (NULL == n->string) {
n->string = mandoc_malloc(newch);
*n->string = '\0';
@@ -1383,7 +1383,7 @@ roff_setstr(struct roff *r, const char *name, const char *string,
}
/* Skip existing content in the destination buffer. */
- c = n->string + oldch;
+ c = n->string + (int)oldch;
/* Append new content to the destination buffer. */
while (*string) {