From: Florian Zeitz Date: Sun, 10 Jul 2011 00:22:02 +0000 (+0200) Subject: Minor cleanup X-Git-Url: http://cgit.babelmonkeys.de/?p=mpdbot.git;a=commitdiff_plain;h=3320f0b31108d35099496e8ad717010cca40cb79 Minor cleanup --- diff --git a/src/PEPThread.m b/src/PEPThread.m index e00db9d..b6b9cb1 100644 --- a/src/PEPThread.m +++ b/src/PEPThread.m @@ -48,7 +48,7 @@ return; } @catch (id e) { [of_stderr writeFormat: @"Connection failed, retrying" - " in %" PRIi64 " seconds\n", pause]; + @" in %" PRIi64 @" seconds\n", pause]; [OFThread sleepForTimeInterval: pause]; if (pause < 120) pause *= 2; @@ -57,11 +57,11 @@ } } -- (OFMutableDictionary*)MPD_responseFromSocket: (OFTCPSocket*)sock +- (OFMutableDictionary*)MPD_responseFromSocket: (OFTCPSocket*)sock_ { OFString *answer; OFMutableDictionary *response = [OFMutableDictionary dictionary]; - while ((answer = [sock readLine]) && ![answer hasPrefix: @"OK"]) { + while ((answer = [sock_ readLine]) && ![answer hasPrefix: @"OK"]) { size_t index; index = [answer indexOfFirstOccurrenceOfString: @":"]; if (index == OF_INVALID_INDEX)