Fix warnings.

This commit is contained in:
David Given 2022-07-17 00:44:23 +02:00
parent 44fc125b1a
commit b40f4e33fb

View file

@ -37,12 +37,12 @@ $ */
int int
_format(char *buf, const char *fmt, va_list argp) _format(char *buf, const char *fmt, va_list argp)
{ {
register char *pf = fmt; const char *pf = fmt;
register char *pb = buf; char *pb = buf;
while (*pf) { while (*pf) {
if (*pf == '%') { if (*pf == '%') {
register width, base, pad, npad; int width, base, pad, npad;
char *arg; char *arg;
char cbuf[2]; char cbuf[2];
char *badformat = "<bad format>"; char *badformat = "<bad format>";