Fix warnings.
This commit is contained in:
parent
44fc125b1a
commit
b40f4e33fb
|
@ -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>";
|
||||||
|
|
Loading…
Reference in a new issue