value = memchr(ptr, ':', cb);
if(value) {
size_t namelen = value - ptr;
- fprintf(outs->stream, BOLD "%.*s" BOLDOFF ":", namelen, ptr);
+ fprintf(outs->stream, BOLD "%.*s" BOLDOFF ":", (int)namelen, ptr);
#ifndef LINK
fwrite(&value[1], cb - namelen - 1, 1, outs->stream);
#else
!strcmp("ftp", scheme) ||
!strcmp("ftps", scheme)) {
fprintf(stream, LINK "%s" LINKST "%.*s" LINKOFF,
- finalurl, loclen, location);
+ finalurl, (int)loclen, location);
goto locdone;
}
if(!rest)
break; /* handled them all */
/* replace with all spaces for continuation line */
- msnprintf(preamble, sizeof(preamble), "%*s", strlen(preamble), "");
+ msnprintf(preamble, sizeof(preamble), "%*s", (int)strlen(preamble),
+ "");
}
}
/* If any bits have no definition, output an explicit value.
if(!rest)
break; /* handled them all */
/* replace with all spaces for continuation line */
- msnprintf(preamble, sizeof(preamble), "%*s", strlen(preamble), "");
+ msnprintf(preamble, sizeof(preamble), "%*s", (int)strlen(preamble),
+ "");
}
}
/* If any bits have no definition, output an explicit value.