[tasque/transition: 95/213] Fix formatting



commit 289df2989268ab327bb42dc5625006e8f14e87b8
Author: Antonius Riha <antoniusriha gmail com>
Date:   Mon Jul 30 23:48:32 2012 +0200

    Fix formatting

 src/tasque/Program.cs |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/src/tasque/Program.cs b/src/tasque/Program.cs
index fd8d2e7..4362800 100644
--- a/src/tasque/Program.cs
+++ b/src/tasque/Program.cs
@@ -50,26 +50,26 @@ namespace Tasque
 		#region Set process name
 		// From Banshee: Hyena/ApplicationContext.cs
 		[DllImport ("libc")] // Linux
-        static extern int prctl (int option, byte [] arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5);
-
-        [DllImport ("libc")] // BSD
-        static extern void setproctitle (byte [] fmt, byte [] str_arg);
-
-        static void SetProcessName (string name)
-        {
-            if (Environment.OSVersion.Platform != PlatformID.Unix)
-                return;
+		static extern int prctl (int option, byte [] arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5);
+		
+		[DllImport ("libc")] // BSD
+		static extern void setproctitle (byte [] fmt, byte [] str_arg);
+		
+		static void SetProcessName (string name)
+		{
+			if (Environment.OSVersion.Platform != PlatformID.Unix)
+				return;
 			
 			try {
 				var retVal = prctl (15 /* PR_SET_NAME */, Encoding.ASCII.GetBytes (name + "\0"),
 				                    IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
 				if (retVal != 0)
 					throw new ApplicationException ("Error setting process name: " +
-                        Stdlib.GetLastError ());
-            } catch (EntryPointNotFoundException) {
-                setproctitle (Encoding.ASCII.GetBytes ("%s\0"), Encoding.ASCII.GetBytes (name + "\0"));
-            }
-        }
+						Stdlib.GetLastError ());
+			} catch (EntryPointNotFoundException) {
+				setproctitle (Encoding.ASCII.GetBytes ("%s\0"), Encoding.ASCII.GetBytes (name + "\0"));
+			}
+		}
 		#endregion
 		
 		static void SetupDebugAndTrace ()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]