aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-01-10 07:01:23 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-01-10 07:01:23 +0000
commit7bf2077607ab75467773d844e44c08c4c0330521 (patch)
tree86dbc465a7c31752a7282797eb14d818691344f4 /util.c
parentd6393bba6ea71d0ff30cbf2ba11a37d04eb12b01 (diff)
Simplified a #ifdef __WIN32.
svn path=/trunk/; revision=35448
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/util.c b/util.c
index e66b095840..9530f0a9e9 100644
--- 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 "";
}