mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Tidied for gcc-3.4
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15476 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
89c0d389fd
commit
9e7fe6bf12
50 changed files with 2888 additions and 1775 deletions
|
@ -263,8 +263,8 @@ NSString * const GSTelnetTextKey = @"GSTelnetTextKey";
|
|||
unsigned char *ptr;
|
||||
unsigned char c;
|
||||
unsigned int s = 0;
|
||||
unsigned int old;
|
||||
unsigned int len;
|
||||
int old;
|
||||
int len;
|
||||
int i; // May be negative.
|
||||
|
||||
if (d != nil)
|
||||
|
@ -272,7 +272,7 @@ NSString * const GSTelnetTextKey = @"GSTelnetTextKey";
|
|||
// NSLog(@"Read - '%@'", d);
|
||||
[ibuf appendData: d];
|
||||
}
|
||||
old = len = [ibuf length];
|
||||
old = len = (int)[ibuf length];
|
||||
ptr = [ibuf mutableBytes];
|
||||
|
||||
for (i = pos; i < len; i++)
|
||||
|
@ -355,7 +355,7 @@ NSString * const GSTelnetTextKey = @"GSTelnetTextKey";
|
|||
break; // Need more data
|
||||
}
|
||||
}
|
||||
else if (c == '\r' && i < len - 1 && ptr[i+1] == '\n')
|
||||
else if (c == '\r' && (int)i < len - 1 && ptr[i+1] == '\n')
|
||||
{
|
||||
line = [[NSData alloc] initWithBytes: &ptr[s] length: i-s+2];
|
||||
i++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue