Fix lots of compiler warnings

This commit is contained in:
Ralf Schlatterbeck 2014-05-31 15:52:33 +02:00
parent 47d1c2a74d
commit 478d91ac53
9 changed files with 12 additions and 15 deletions

View file

@ -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;