avoid unused variable warning

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28362 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-06-19 16:03:44 +00:00
parent 745ca3f62b
commit 366f2eeca1

View file

@ -392,7 +392,6 @@ static NSStringEncoding defaultEncoding;
- (BOOL) changeFileAttributes: (NSDictionary*)attributes atPath: (NSString*)path
{
const _CHAR *lpath = 0;
NSNumber *tmpNum;
unsigned long num;
NSString *str;
NSDate *date;
@ -411,7 +410,8 @@ static NSStringEncoding defaultEncoding;
}
else
{
tmpNum = [attributes fileOwnerAccountID];
NSNumber *tmpNum = [attributes fileOwnerAccountID];
num = tmpNum ? [tmpNum unsignedLongValue] : NSNotFound;
}
if (num != NSNotFound)
@ -474,7 +474,8 @@ static NSStringEncoding defaultEncoding;
}
else
{
tmpNum = [attributes fileGroupOwnerAccountID];
NSNumber *tmpNum = [attributes fileGroupOwnerAccountID];
num = tmpNum ? [tmpNum unsignedLongValue] : NSNotFound;
}
if (num != NSNotFound)