]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove the extra whitespace around the DARWIN #defines
authorNeel Chauhan <neel@neelc.org>
Fri, 15 Nov 2019 20:05:16 +0000 (15:05 -0500)
committerNeel Chauhan <neel@neelc.org>
Fri, 15 Nov 2019 20:05:53 +0000 (15:05 -0500)
src/app/config/config.c
src/test/test_options.c

index c121775c041a5ed8260da1ff7c5940fec7b7b9ac..3605cbd9f3995b6cf940d378097130e42203a2b3 100644 (file)
@@ -3228,13 +3228,13 @@ options_validate_cb(const void *old_options_, void *options_, char **msg)
     if (!strcasecmp(options->TransProxyType, "default")) {
       options->TransProxyType_parsed = TPT_DEFAULT;
     } else if (!strcasecmp(options->TransProxyType, "pf-divert")) {
-#if !defined(OpenBSD) && !defined( DARWIN )
+#if !defined(OpenBSD) && !defined(DARWIN)
       /* Later versions of OS X have pf */
       REJECT("pf-divert is a OpenBSD-specific "
              "and OS X/Darwin-specific feature.");
 #else
       options->TransProxyType_parsed = TPT_PF_DIVERT;
-#endif /* !defined(OpenBSD) && !defined( DARWIN ) */
+#endif /* !defined(OpenBSD) && !defined(DARWIN) */
     } else if (!strcasecmp(options->TransProxyType, "tproxy")) {
 #if !defined(__linux__)
       REJECT("TPROXY is a Linux-specific feature.");
index 8aa4bf0906ffe70bfe4c75323a6de4720cefb5c5..e3b86c81add8bb42de3367fb7ce4dc3c19b29f7f 100644 (file)
@@ -1071,14 +1071,14 @@ test_options_validate__transproxy(void *ignored)
   ret = options_validate(NULL, tdata->opt, &msg);
   tt_int_op(ret, OP_EQ, -1);
 
-#if !defined(OpenBSD) && !defined( DARWIN )
+#if !defined(OpenBSD) && !defined(DARWIN)
   tt_str_op(msg, OP_EQ,
           "pf-divert is a OpenBSD-specific and OS X/Darwin-specific feature.");
 #else
   tt_int_op(tdata->opt->TransProxyType_parsed, OP_EQ, TPT_PF_DIVERT);
   tt_str_op(msg, OP_EQ, "Cannot use TransProxyType without "
             "any valid TransPort.");
-#endif /* !defined(OpenBSD) && !defined( DARWIN ) */
+#endif /* !defined(OpenBSD) && !defined(DARWIN) */
   tor_free(msg);
 
   // Test tproxy trans proxy