From ce445a0db3e25186d3778fa0f1083a6f96b4e72c Mon Sep 17 00:00:00 2001 From: Stuart Connolly Date: Sun, 24 Nov 2013 16:57:49 +0000 Subject: Fix warning. --- Source/SPLogger.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/SPLogger.m') diff --git a/Source/SPLogger.m b/Source/SPLogger.m index 9d3b5d69..3bba8421 100644 --- a/Source/SPLogger.m +++ b/Source/SPLogger.m @@ -45,7 +45,7 @@ static SPLogger *logger = nil; - (void)_initLogFile; - (void)_outputTimeString; -int _isSPLeaksLog(struct direct *entry); +int _isSPLeaksLog(const struct direct *entry); @end @@ -253,7 +253,7 @@ int _isSPLeaksLog(struct direct *entry); [logFileHandle writeData:[[NSString stringWithFormat:@"Launched at %@\n\n", [[NSDate date] description]] dataUsingEncoding:NSUTF8StringEncoding]]; } -int _isSPLeaksLog(struct direct *entry) +int _isSPLeaksLog(const struct direct *entry) { return (strstr(entry->d_name, "sp.leaks") != NULL); } -- cgit v1.2.3