]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
get rid of whitespace before #ifdef's
authorRoger Dingledine <arma@torproject.org>
Fri, 11 May 2018 20:27:55 +0000 (16:27 -0400)
committerRoger Dingledine <arma@torproject.org>
Fri, 11 May 2018 20:27:55 +0000 (16:27 -0400)
i don't know if whitespace is ok to have before preprocessing
directives on all platforms, but anyway we almost never have it,
so now things are more uniform.

src/or/control.c

index 6f87f5ab5fdc9bc38dd26ba698976905b97b0960..9323173f5d6b7dd30a859f6dd1de9f6c193f9b91 100644 (file)
@@ -1861,24 +1861,24 @@ getinfo_helper_misc(control_connection_t *conn, const char *question,
   } else if (!strcmp(question, "process/pid")) {
     int myPid = -1;
 
-    #ifdef _WIN32
+#ifdef _WIN32
       myPid = _getpid();
-    #else
+#else
       myPid = getpid();
-    #endif
+#endif
 
     tor_asprintf(answer, "%d", myPid);
   } else if (!strcmp(question, "process/uid")) {
-    #ifdef _WIN32
+#ifdef _WIN32
       *answer = tor_strdup("-1");
-    #else
+#else
       int myUid = geteuid();
       tor_asprintf(answer, "%d", myUid);
 #endif /* defined(_WIN32) */
   } else if (!strcmp(question, "process/user")) {
-    #ifdef _WIN32
+#ifdef _WIN32
       *answer = tor_strdup("");
-    #else
+#else
       int myUid = geteuid();
       const struct passwd *myPwEntry = tor_getpwuid(myUid);