diff options
author | 2015-03-09 21:30:27 +0000 | |
---|---|---|
committer | 2015-03-09 21:30:27 +0000 | |
commit | 1918841e2ed981874e2c1fa688e53ca1a993edab (patch) | |
tree | 4e10dc98b3b63a1649fd0628820160c7c81bd309 /usr.bin/mandoc/preconv.c | |
parent | If my calculations are correct, when this baby hits 5.8... you're gonna see (diff) | |
download | wireguard-openbsd-1918841e2ed981874e2c1fa688e53ca1a993edab.tar.xz wireguard-openbsd-1918841e2ed981874e2c1fa688e53ca1a993edab.zip |
Explicitly cast when assigning from char * to unsigned char * and vice versa.
For example, gcc 4.7 wants this with -Wall. Patch from kristaps@.
Diffstat (limited to 'usr.bin/mandoc/preconv.c')
-rw-r--r-- | usr.bin/mandoc/preconv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/preconv.c b/usr.bin/mandoc/preconv.c index 3d5a30655f6..532152eedad 100644 --- a/usr.bin/mandoc/preconv.c +++ b/usr.bin/mandoc/preconv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: preconv.c,v 1.5 2014/12/19 04:57:11 schwarze Exp $ */ +/* $OpenBSD: preconv.c,v 1.6 2015/03/09 21:30:27 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -31,7 +31,7 @@ preconv_encode(struct buf *ib, size_t *ii, struct buf *ob, size_t *oi, int nby; unsigned int accum; - cu = ib->buf + *ii; + cu = (unsigned char *)ib->buf + *ii; assert(*cu & 0x80); if ( ! (*filenc & MPARSE_UTF8)) |