Commits

Brodie Rao committed 42413c5

Fixed some syntax errors/warnings

Comments (0)

Files changed (3)

 @end
 
 // Custom instance variables
-extern NSMutableDictionary* MouseTerm_ivars = nil;
+extern NSMutableDictionary* MouseTerm_ivars;
 
 #import "JRSwizzle.h"
 
+#import "MouseTerm.h"
+
 // Dummy implementations to fix 64-bit linking
 @implementation TTView
 - (Position) displayPositionForPoint: (NSPoint) point {}
 
     if (![cl1 jr_swizzleMethod: @selector(shellDidReceiveData:)
               withMethod: @selector(MouseTerm_shellDidReceiveData:)
-              error: nill])
+              error: nil])
     {
         NSLog(@"[MouseTerm] ERROR: Failed to swizzle "
                "[TTTabController shellDidReceiveData:]");
     const char* chars = [data bytes];
     const char* pos;
 
-    if (pos = strnstr(chars, TOGGLE_MOUSE, length))
+    if ((pos = strnstr(chars, TOGGLE_MOUSE, length)))
     {
         // Is there enough data in the buffer for the next two characters?
-        if ([data length] >= (NSUInteger) &pos[TOGGLE_MOUSE_LEN] - chars + 2)
+        if ([data length] >= (NSUInteger) (&pos[TOGGLE_MOUSE_LEN] - chars) + 2)
         {
             char mode = pos[TOGGLE_MOUSE_LEN];
             char flag = pos[TOGGLE_MOUSE_LEN + 1];