fix style and typo
This commit is contained in:
parent
be888c09ab
commit
4998adb058
|
@ -67,6 +67,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
p.Parse (args);
|
p.Parse (args);
|
||||||
|
|
||||||
} catch (OptionException e) {
|
} catch (OptionException e) {
|
||||||
Console.Write ("SparkleShare: ");
|
Console.Write ("SparkleShare: ");
|
||||||
Console.WriteLine (e.Message);
|
Console.WriteLine (e.Message);
|
||||||
|
@ -148,10 +149,10 @@ namespace SparkleShare {
|
||||||
private static void SetProcessName (string name)
|
private static void SetProcessName (string name)
|
||||||
{
|
{
|
||||||
try {
|
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: " +
|
throw new ApplicationException ("Error setting process name: " +
|
||||||
Mono.Unix.Native.Stdlib.GetLastError ());
|
Mono.Unix.Native.Stdlib.GetLastError ());
|
||||||
}
|
|
||||||
} catch (EntryPointNotFoundException) {
|
} catch (EntryPointNotFoundException) {
|
||||||
Console.WriteLine ("SetProcessName: Entry point not found");
|
Console.WriteLine ("SetProcessName: Entry point not found");
|
||||||
}
|
}
|
||||||
|
@ -164,7 +165,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
|
|
||||||
// This fixes the PlatformID enumeration for MacOSX in Environment.OSVersion.Platform,
|
// 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 {
|
static PlatformID Platform {
|
||||||
get {
|
get {
|
||||||
IntPtr buf = IntPtr.Zero;
|
IntPtr buf = IntPtr.Zero;
|
||||||
|
|
Loading…
Reference in a new issue