} else if (neg)
acc = -acc;
if (endptr != NULL)
- *((const char **)endptr) = any ? s - 1 : nptr;
+ *((const char **)(void *)endptr) = any ? s - 1 : nptr;
return (acc);
}
} else if (neg)
acc = -acc;
if (endptr != NULL)
- *((const char **)endptr) = any ? s - 1 : nptr;
+ *((const char **)(void *)endptr) = any ? s - 1 : nptr;
return (acc);
}
} else if (neg)
acc = -acc;
if (endptr != NULL)
- *((const char **)endptr) = any ? s - 1 : nptr;
+ *((const char **)(void *)endptr) = any ? s - 1 : nptr;
return (acc);
}
} else if (neg)
acc = -acc;
if (endptr != NULL)
- *((const char **)endptr) = any ? s - 1 : nptr;
+ *((const char **)(void *)endptr) = any ? s - 1 : nptr;
return (acc);
}
struct ng_parse_type subtype;
subtype = ng_parse_bytearray_subtype;
- *(const void **)&subtype.private = type->info;
+ *(const void **)(void *)&subtype.private = type->info;
return ng_array_parse(&subtype, s, off, start, buf, buflen);
}
}
struct ng_parse_type subtype;
subtype = ng_parse_bytearray_subtype;
- *(const void **)&subtype.private = type->info;
+ *(const void **)(void *)&subtype.private = type->info;
return ng_array_unparse(&subtype, data, off, cbuf, cbuflen);
}
struct ng_parse_type subtype;
subtype = ng_parse_bytearray_subtype;
- *(const void **)&subtype.private = type->info;
+ *(const void **)(void *)&subtype.private = type->info;
return ng_array_getDefault(&subtype, start, buf, buflen);
}
inbuf[2]='\0';
inp = inbuf;
outp = outbuf;
- cd9660_iconv->convchr(handle, (const char **)&inp, &i, &outp, &j);
+ cd9660_iconv->convchr(handle, (const char **)(void *)&inp,
+ &i, &outp, &j);
len -= j;
if (clen) *clen = len;
*c = '\0';
* Copy the name portion into the unix filename string.
*/
for(i = 8; i > 0 && *dn != ' ';) {
- c = dos2unixchr((const u_char **)&dn, &i, lower & LCASE_BASE,
- pmp);
+ c = dos2unixchr((const u_char **)(void *)&dn,
+ &i, lower & LCASE_BASE, pmp);
if (c & 0xff00) {
*un++ = c >> 8;
thislong++;
*un++ = '.';
thislong++;
for (i = 3; i > 0 && *dn != ' ';) {
- c = dos2unixchr((const u_char **)&dn, &i,
+ c = dos2unixchr((const u_char **)(void *)&dn, &i,
lower & LCASE_EXT, pmp);
if (c & 0xff00) {
*un++ = c >> 8;
* to look up or create files in case sensitive even when
* it's a long file name.
*/
- c1 = unix2winchr((const u_char **)&np, &len, LCASE_BASE, pmp);
+ c1 = unix2winchr((const u_char **)(void *)&np,
+ &len, LCASE_BASE, pmp);
c2 = unix2winchr(&un, &unlen, LCASE_BASE, pmp);
if (c1 != c2)
return -2;
inbuf[2] = '\0';
p = inbuf;
outp = outbuf;
- ntfs_iconv->convchr(ntmp->ntm_ic_u2l, (const char **)&p, &ilen,
- &outp, &olen);
+ ntfs_iconv->convchr(ntmp->ntm_ic_u2l,
+ (const char **)(void *)&p, &ilen, &outp, &olen);
if (olen == 1) {
return ((wchar)(outbuf[0]&0xFF));
} else if (olen == 0) {
inbuf[2] = '\0';
p = inbuf;
outp = outbuf;
- ntfs_iconv->convchr(ntmp->ntm_ic_l2u, (const char **)&p, &ilen,
- &outp, &olen);
+ ntfs_iconv->convchr(ntmp->ntm_ic_l2u,
+ (const char **)(void *)&p, &ilen, &outp, &olen);
*len -= (int)ilen;
uc = (wchar)((outbuf[0]<<8) | (outbuf[1]&0xFF));