summaryrefslogtreecommitdiff
path: root/tests/src/X.c
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2013-06-18 11:14:43 +1200
committerRobert Ancell <robert.ancell@canonical.com>2013-06-18 11:14:43 +1200
commit55410b446ba62d8174dfdf62cc76129d63204b73 (patch)
tree0d1cebf6940d5fe238700980ea443c2b8e5495bf /tests/src/X.c
parent903bc143a3d4003c2bfd7143edbe135fcf38260f (diff)
downloadlightdm-git-55410b446ba62d8174dfdf62cc76129d63204b73.tar.gz
Fix compile warnings
Diffstat (limited to 'tests/src/X.c')
-rw-r--r--tests/src/X.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/src/X.c b/tests/src/X.c
index 86ae768d..dfc41d36 100644
--- a/tests/src/X.c
+++ b/tests/src/X.c
@@ -38,7 +38,7 @@ static guint16 xdmcp_cookie_length = 0;
static guint8 *xdmcp_cookie = NULL;
static void
-cleanup ()
+cleanup (void)
{
if (lock_path)
unlink (lock_path);
@@ -56,7 +56,7 @@ quit (int status)
}
static void
-indicate_ready ()
+indicate_ready (void)
{
void *handler;
handler = signal (SIGUSR1, SIG_IGN);
@@ -192,8 +192,6 @@ main (int argc, char **argv)
{
int i;
char *pid_string;
- gboolean listen_tcp = TRUE;
- gboolean listen_unix = TRUE;
gboolean do_xdmcp = FALSE;
guint xdmcp_port = 0;
gchar *xdmcp_host = NULL;
@@ -230,9 +228,9 @@ main (int argc, char **argv)
char *protocol = argv[i+1];
i++;
if (strcmp (protocol, "tcp") == 0)
- listen_tcp = FALSE;
+ ;//listen_tcp = FALSE;
else if (strcmp (protocol, "unix") == 0)
- listen_unix = FALSE;
+ ;//listen_unix = FALSE;
}
else if (strcmp (arg, "-nr") == 0)
{