From 017c2ed92f2df4f99334a026e58b77bae6a2e3c0 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 27 Mar 2010 12:42:13 -0400 Subject: [PATCH] Switch some basic ints to NSUInteger in GDBpConnection. --- Source/GDBpConnection.h | 12 ++++++------ Source/GDBpConnection.m | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/GDBpConnection.h b/Source/GDBpConnection.h index 0687432..d3b4eda 100644 --- a/Source/GDBpConnection.h +++ b/Source/GDBpConnection.h @@ -23,14 +23,14 @@ @interface GDBpConnection : NSObject { - int port; + NSUInteger port; BOOL connected; /** * An ever-increasing integer that gives each transaction a unique ID for * the debugging engine. Managed by |-createCommand:|. */ - int transactionID; + NSUInteger transactionID; /** * Human-readable status of the connection @@ -44,7 +44,7 @@ CFReadStreamRef readStream_; // The most recently received transaction ID. - int lastReadTransaction_; + NSUInteger lastReadTransaction_; // Information about the current read loop. We append to |currentPacket_| // until |currentPacketSize_| has reached |packetSize_|. @@ -66,7 +66,7 @@ CFWriteStreamRef writeStream_; // The last transactionID written to the stream. - int lastWrittenTransaction_; + NSUInteger lastWrittenTransaction_; // A dictionary that maps routingIDs to StackFrame objects. NSMutableDictionary* stackFrames_; @@ -92,10 +92,10 @@ @property (assign) id delegate; // initializer -- (id)initWithPort:(int)aPort; +- (id)initWithPort:(NSUInteger)aPort; // getter -- (int)port; +- (NSUInteger)port; - (NSString*)remoteHost; - (BOOL)isConnected; - (NSArray*)getCurrentStack; diff --git a/Source/GDBpConnection.m b/Source/GDBpConnection.m index e9b9b26..8924f8d 100644 --- a/Source/GDBpConnection.m +++ b/Source/GDBpConnection.m @@ -27,10 +27,10 @@ @property (readwrite, copy) NSString* status; @property (assign) CFSocketRef socket; @property (assign) CFReadStreamRef readStream; -@property int lastReadTransaction; +@property NSUInteger lastReadTransaction; @property (retain) NSMutableString* currentPacket; @property (assign) CFWriteStreamRef writeStream; -@property int lastWrittenTransaction; +@property NSUInteger lastWrittenTransaction; @property (retain) NSMutableArray* queuedWrites; - (void)connect; @@ -209,7 +209,7 @@ void SocketAcceptCallback(CFSocketRef socket, * Creates a new DebuggerConnection and initializes the socket from the given connection * paramters. */ -- (id)initWithPort:(int)aPort +- (id)initWithPort:(NSUInteger)aPort { if (self = [super init]) { @@ -237,7 +237,7 @@ void SocketAcceptCallback(CFSocketRef socket, /** * Gets the port number */ -- (int)port +- (NSUInteger)port { return port; } -- 2.22.5