Fix lots of compiler warnings
This commit is contained in:
parent
47d1c2a74d
commit
478d91ac53
9 changed files with 12 additions and 15 deletions
|
@ -81,7 +81,7 @@ petsciiconv_toascii(char *buf, unsigned int len)
|
|||
{
|
||||
static char c;
|
||||
|
||||
ptr = buf;
|
||||
ptr = (unsigned char*)buf;
|
||||
for(i = len; i > 0; --i) {
|
||||
c = *ptr;
|
||||
if(c == 0x0a) {
|
||||
|
@ -108,7 +108,7 @@ petsciiconv_toascii(char *buf, unsigned int len)
|
|||
void
|
||||
petsciiconv_topetscii(char *buf, unsigned int len)
|
||||
{
|
||||
ptr = buf;
|
||||
ptr = (unsigned char *)buf;
|
||||
for(i = len; i > 0; --i) {
|
||||
*ptr = ascii2petscii[*ptr & 0x7f];
|
||||
++ptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue