- constify

git-svn-id: http://moon:8086/svn/mips@31 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2015-05-27 20:35:03 +00:00
parent c2a5ca1864
commit 0ac3ad9d75
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -1034,10 +1034,9 @@ int unlink(char *name)
return -1; return -1;
} }
int sputs(char *pStr) int sputs(char const *pStr)
{ {
char *start; char const *start = pStr;
start = pStr;
while(*pStr) while(*pStr)
_putchar(GetPort(1), *(pStr++)); _putchar(GetPort(1), *(pStr++));
+1 -1
View File
@@ -380,7 +380,7 @@ void DCACHE_invalidate_at(UINT32* pPtr);
char readchar(UINT32 port); char readchar(UINT32 port);
void writechar(UINT32 port, char c); void writechar(UINT32 port, char c);
int write(int file, char *ptr, int len); int write(int file, char *ptr, int len);
int sputs(char *pStr); int sputs(char const *pStr);
void print_byte(char byte); void print_byte(char byte);
void print_word(int word); void print_word(int word);
void _exit (int exitcode); void _exit (int exitcode);