Fix warning
This commit is contained in:
parent
119cd50fd3
commit
966ffa70ce
|
@ -110,12 +110,12 @@ namespace SparkleShare {
|
|||
|
||||
|
||||
// Strange magic needed by SetProcessName ()
|
||||
[DllImport ("libc")]
|
||||
private static extern int prctl (int option, byte [] arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5);
|
||||
// [DllImport ("libc")]
|
||||
// private static extern int prctl (int option, byte [] arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5);
|
||||
|
||||
|
||||
// Sets the Unix process name to 'sparkleshare' instead of 'mono'
|
||||
private static void SetProcessName (string name)
|
||||
/* private static void SetProcessName (string name)
|
||||
{
|
||||
try {
|
||||
if (prctl (15, Encoding.ASCII.GetBytes (name + "\0"), IntPtr.Zero, IntPtr.Zero, IntPtr.Zero) != 0)
|
||||
|
@ -125,6 +125,6 @@ namespace SparkleShare {
|
|||
} catch (EntryPointNotFoundException) {
|
||||
Console.WriteLine ("SetProcessName: Entry point not found");
|
||||
}
|
||||
}
|
||||
} */
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue