From b40f4e33fb3e480cf2ae43d5f3c3abc578d35cbb Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 17 Jul 2022 00:44:23 +0200 Subject: [PATCH] Fix warnings. --- modules/src/print/format.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/src/print/format.c b/modules/src/print/format.c index e03717918..fcd5bcf6f 100644 --- a/modules/src/print/format.c +++ b/modules/src/print/format.c @@ -37,12 +37,12 @@ $ */ int _format(char *buf, const char *fmt, va_list argp) { - register char *pf = fmt; - register char *pb = buf; + const char *pf = fmt; + char *pb = buf; while (*pf) { if (*pf == '%') { - register width, base, pad, npad; + int width, base, pad, npad; char *arg; char cbuf[2]; char *badformat = "";