code cleanup

This commit is contained in:
Hylke Bons 2012-10-22 17:06:57 +01:00
parent 94668c5a99
commit 7be18be494
4 changed files with 6 additions and 12 deletions

View file

@ -58,16 +58,11 @@ namespace SparkleShare {
private DateTime last_found_timestamp;
private IntPtr m_stream;
private FSEventStreamCallback m_callback; // need to keep a reference around so that it isn't GC'ed
private static readonly IntPtr kCFRunLoopDefaultMode = (new NSString ("kCFRunLoopDefaultMode")).Handle;
private static readonly IntPtr kCFRunLoopDefaultMode = new NSString ("kCFRunLoopDefaultMode").Handle;
private ulong kFSEventStreamEventIdSinceNow = 0xFFFFFFFFFFFFFFFFUL;
private delegate void FSEventStreamCallback (
IntPtr streamRef,
IntPtr clientCallBackInfo,
int numEvents,
IntPtr eventPaths,
IntPtr eventFlags,
IntPtr eventIds);
private delegate void FSEventStreamCallback (IntPtr streamRef, IntPtr clientCallBackInfo,
int numEvents, IntPtr eventPaths, IntPtr eventFlags, IntPtr eventIds);
~SparkleMacWatcher ()

View file

@ -54,7 +54,7 @@ namespace SparkleShare {
"under certain conditions. Please read the GNU GPLv3 for details." + n +
n +
"Usage: sparkleshare [start|stop|restart]");
Console.WriteLine ("SparkleShare is already running.");
Environment.Exit (-1);
}

View file

@ -73,6 +73,7 @@ namespace SparkleShare {
NewVersionEvent (latest_version);
else
VersionUpToDateEvent ();
} catch {
}
}

View file

@ -757,9 +757,7 @@ namespace SparkleShare {
return true;
} else {
SparkleLogger.LogInfo ("Controller",
"Not connecting to https://www.gravatar.com/ due to invalid certificate");
SparkleLogger.LogInfo ("Controller", "Invalid certificate for https://www.gravatar.com/");
return false;
}
}