]> cgit.babelmonkeys.de Git - mpdbot.git/commitdiff
Minor cleanup
authorFlorian Zeitz <florob@babelmonkeys.de>
Sun, 10 Jul 2011 00:22:02 +0000 (02:22 +0200)
committerFlorian Zeitz <florob@babelmonkeys.de>
Sun, 10 Jul 2011 00:22:02 +0000 (02:22 +0200)
src/PEPThread.m

index e00db9d8597aebcfc6ada79fa3c27af2b49e3742..b6b9cb1b50b23e18c56136d05747d4655135e2ac 100644 (file)
@@ -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;
        }
 }
 
-- (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)