Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiler warnings. Fixes #2 #3

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions VDKQueue.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#pragma mark -
#pragma mark VDKQueuePathEntry
#pragma mark -
#pragma ------------------------------------------------------------------------------------------------------------------------------------------------------------ */
#pragma ------------------------------------------------------------------------------------------------------------------------------------------------------------ */

// This is a simple model class used to hold info about each path we watch.
@interface VDKQueuePathEntry : NSObject
Expand All @@ -51,7 +49,7 @@ @implementation VDKQueuePathEntry
@synthesize path = _path, watchedFD = _watchedFD, subscriptionFlags = _subscriptionFlags;


- (id) initWithPath:(NSString*)inPath andSubscriptionFlags:(u_int)flags;
- (id) initWithPath:(NSString*)inPath andSubscriptionFlags:(u_int)flags
{
self = [super init];
if (self)
Expand Down Expand Up @@ -94,8 +92,6 @@ -(void) dealloc
#pragma mark -
#pragma mark VDKQueue
#pragma mark -
#pragma ------------------------------------------------------------------------------------------------------------------------------------------------------------ */
#pragma ------------------------------------------------------------------------------------------------------------------------------------------------------------ */

@interface VDKQueue ()
- (void) watcherThread:(id)sender;
Expand Down Expand Up @@ -201,7 +197,7 @@ - (VDKQueuePathEntry *) addPathToQueue:(NSString *)path notifyingAbout:(u_int)fl
}


- (void) watcherThread:(id)sender;
- (void) watcherThread:(id)sender
{
int n;
struct kevent ev;
Expand Down