mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +00:00
Type qualifier fixes
git-svn-id: svn://svn.cc65.org/cc65/trunk@282 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
4f8a02e253
commit
84f74b4393
@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
|
||||
int _printf (struct outdesc* d, char* f, va_list ap)
|
||||
int _printf (struct outdesc* d, const char* f, va_list ap)
|
||||
{
|
||||
outfunc fout; /* Output function */
|
||||
unsigned char type; /* variable argument type */
|
||||
@ -39,7 +39,7 @@ int _printf (struct outdesc* d, char* f, va_list ap)
|
||||
register char* s; /* work pointer to argument string */
|
||||
|
||||
/* Remember the format string in a register variable for shorter code */
|
||||
register char* format = f;
|
||||
register const char* format = f;
|
||||
|
||||
/* Remember the output function in a local variable for speed and size */
|
||||
fout = d->fout;
|
||||
|
@ -30,7 +30,7 @@ struct outdesc {
|
||||
|
||||
|
||||
/* Internal formatting routine */
|
||||
int _printf (struct outdesc* d, char* format, va_list ap);
|
||||
int _printf (struct outdesc* d, const char* format, va_list ap);
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user