From 4998adb058bb38624f7d477c9c97f22cc2a8698c Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Fri, 27 May 2011 00:27:31 +0100 Subject: [PATCH] fix style and typo --- SparkleShare/SparkleShare.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/SparkleShare/SparkleShare.cs b/SparkleShare/SparkleShare.cs index 121e6df9..448e6a9f 100644 --- a/SparkleShare/SparkleShare.cs +++ b/SparkleShare/SparkleShare.cs @@ -67,6 +67,7 @@ namespace SparkleShare { try { p.Parse (args); + } catch (OptionException e) { Console.Write ("SparkleShare: "); Console.WriteLine (e.Message); @@ -148,10 +149,10 @@ namespace SparkleShare { private static void SetProcessName (string name) { try { - if (prctl (15, Encoding.ASCII.GetBytes (name + "\0"), IntPtr.Zero, IntPtr.Zero, IntPtr.Zero) != 0) { + if (prctl (15, Encoding.ASCII.GetBytes (name + "\0"), IntPtr.Zero, IntPtr.Zero, IntPtr.Zero) != 0) throw new ApplicationException ("Error setting process name: " + - Mono.Unix.Native.Stdlib.GetLastError ()); - } + Mono.Unix.Native.Stdlib.GetLastError ()); + } catch (EntryPointNotFoundException) { Console.WriteLine ("SetProcessName: Entry point not found"); } @@ -164,7 +165,7 @@ namespace SparkleShare { // This fixes the PlatformID enumeration for MacOSX in Environment.OSVersion.Platform, - // which is intentionally broken in Mono for hystorical reasons + // which is intentionally broken in Mono for historical reasons static PlatformID Platform { get { IntPtr buf = IntPtr.Zero;