/* Convert character from buffer if possible */
if (f->rpos < f->rend) {
- l = mbrtowc(&wc, f->rpos, f->rend - f->rpos, &st);
+ l = mbrtowc(&wc, (void *)f->rpos, f->rend - f->rpos, &st);
if (l+2 >= 2) {
f->rpos += l + !l; /* l==0 means 1 byte, null */
return wc;
if (!mbsinit(&st)) errno = EILSEQ;
return WEOF;
}
- l = mbrtowc(&wc, &b, 1, &st);
+ l = mbrtowc(&wc, (void *)&b, 1, &st);
if (l == -1) return WEOF;
}
f->mode |= f->mode+1;
- while (ws && (l = wcsrtombs(buf, (void*)&ws, sizeof buf, 0))+1 > 1)
+ while (ws && (l = wcsrtombs((void *)buf, (void*)&ws, sizeof buf, 0))+1 > 1)
if (__fwritex(buf, l, f) < l) {
FUNLOCK(f);
return -1;