Skip to content

Commit

Permalink
Move FTPServ targets to static lib target. Fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
spathiwa committed Jun 4, 2015
1 parent 298a162 commit 9b3bdd0
Show file tree
Hide file tree
Showing 3 changed files with 232 additions and 19 deletions.
2 changes: 1 addition & 1 deletion FTPServLib/FtpConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ - (NSString *)visibleCurrentDir

if ( server.changeRoot ) // if root changed, to basedir
{
int alength = [server.baseDir length ]; // length of basedir
NSUInteger alength = [server.baseDir length ]; // length of basedir

//NSLog(@"Length is %u", alength );
NSString *aString = [ currentDir substringFromIndex:alength ]; // get the bit after basedir
Expand Down
4 changes: 2 additions & 2 deletions FTPServLib/list.m
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

fileSubdirCount = fileSubdirCount <1 ? 1 : fileSubdirCount;

binaryString = int2BinString([filePermissions unsignedLongValue]) ;
binaryString = int2BinString((int)[filePermissions unsignedLongValue]) ;
binaryString = [ binaryString substringFromIndex:7 ];// snip off the front
formattedString = [ NSString stringWithFormat:@"%@%@ %5li %12@ %12@ %10qu %@ %@", fileIsDirectory ? @"d" : @"-" ,bin2perms(binaryString),fileSubdirCount, fileOwner, fileGroup, [fileSize unsignedLongLongValue], fileDateFormatted , filePath ];
}
Expand Down Expand Up @@ -174,7 +174,7 @@ int filesinDirectory(NSString* filePath )
NSMutableString *returnString = [[ NSMutableString alloc ] init];
NSRange subStringRange;
subStringRange.length = 1;
NSString *replaceWithChar;
NSString *replaceWithChar = nil;

for (int n=0; n < [binaryValue length]; n++)
{
Expand Down
Loading

0 comments on commit 9b3bdd0

Please sign in to comment.