Simplified a #ifdef __WIN32.
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 10 Jan 2011 07:01:23 +0000 (07:01 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 10 Jan 2011 07:01:23 +0000 (07:01 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35448 f5534014-38df-0310-8fa8-9805f1628bb7

util.c

diff --git a/util.c b/util.c
index e66b0958406a814c788a9023466c86ae240dbf66..9530f0a9e99312384982f7c790409b2c1ccf6a88 100644 (file)
--- a/util.c
+++ b/util.c
@@ -330,14 +330,12 @@ const gchar *get_conn_cfilter(void) {
                        host_ip_af(phostname), phostname);
                g_free(phostname);
                return filter_str->str;
-#ifndef _WIN32
-       }
-#else /* _WIN32 */
+#ifdef _WIN32
        } else if (GetSystemMetrics(SM_REMOTESESSION)) {
                /* We have a remote session: http://msdn.microsoft.com/en-us/library/aa380798%28VS.85%29.aspx */
                g_string_printf(filter_str, "not tcp port 3389");
                return filter_str->str;
-       }
 #endif /* _WIN32 */
+       }
        return "";
 }