s->aux = (struct _aux *) malloc (s->optc * sizeof (struct _aux));
for (i = 0; i < s->optc; i++) {
- const char *p, *pname;
+ const Char *p, *pname;
const struct optspec_t *opt;
struct _aux *aux;
if (opt->opt_fmt[0] == '-' && opt->opt_fmt[1] == '-') {
aux->flags |= IS_LONG;
- pname = opt->opt_fmt + 2;
+ pname = (const Char *)(opt->opt_fmt + 2);
s->has_long = 1;
}
else {
- pname = opt->opt_fmt + 1;
+ pname = (const Char *)(opt->opt_fmt + 1);
s->has_short = 1;
}
aux->printlen = strlen (opt->opt_fmt);
while (*p && n < maxlen[1]
&& *p != '\n') {
- if (isspace (*p)
+ if (isspace ((Char)(*p))
|| *p == '-') lastws =
p;
n++;
if (lastws) {
fprintf (fp,
"%.*s\n",
- lastws -
- pstart,
+ (int)(lastws - pstart),
pstart);
pstart =
lastws + 1;