diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2013-06-18 11:14:43 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2013-06-18 11:14:43 +1200 |
commit | 55410b446ba62d8174dfdf62cc76129d63204b73 (patch) | |
tree | 0d1cebf6940d5fe238700980ea443c2b8e5495bf /tests | |
parent | 903bc143a3d4003c2bfd7143edbe135fcf38260f (diff) | |
download | lightdm-git-55410b446ba62d8174dfdf62cc76129d63204b73.tar.gz |
Fix compile warnings
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/X.c | 10 | ||||
-rw-r--r-- | tests/src/Xvnc.c | 10 | ||||
-rw-r--r-- | tests/src/test-runner.c | 10 |
3 files changed, 13 insertions, 17 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) { diff --git a/tests/src/Xvnc.c b/tests/src/Xvnc.c index 247c5c6e..fd374191 100644 --- a/tests/src/Xvnc.c +++ b/tests/src/Xvnc.c @@ -29,7 +29,7 @@ static int display_number = 0; static XServer *xserver = NULL; static void -indicate_ready () +indicate_ready (void) { void *handler; handler = signal (SIGUSR1, SIG_IGN); @@ -42,7 +42,7 @@ indicate_ready () } static void -cleanup () +cleanup (void) { if (lock_path) unlink (lock_path); @@ -132,8 +132,6 @@ int main (int argc, char **argv) { char *pid_string; - gboolean listen_tcp = TRUE; - gboolean listen_unix = TRUE; gboolean use_inetd = FALSE; gboolean has_option = FALSE; gchar *geometry = g_strdup ("640x480"); @@ -172,9 +170,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, "-geometry") == 0) { diff --git a/tests/src/test-runner.c b/tests/src/test-runner.c index 1015d1aa..1d581558 100644 --- a/tests/src/test-runner.c +++ b/tests/src/test-runner.c @@ -561,7 +561,7 @@ handle_command (const gchar *command) } static void -run_commands () +run_commands (void) { /* Stop daemon if requested */ while (TRUE) @@ -1033,7 +1033,7 @@ ck_name_acquired_cb (GDBusConnection *connection, } static void -start_console_kit_daemon () +start_console_kit_daemon (void) { service_count++; g_bus_own_name (G_BUS_TYPE_SYSTEM, @@ -1351,7 +1351,7 @@ accounts_user_set_hidden (AccountsUser *user, gboolean hidden, gboolean emit_sig } static void -load_passwd_file () +load_passwd_file (void) { gchar *path, *data, **lines; gchar **user_filter = NULL; @@ -1630,7 +1630,7 @@ accounts_name_acquired_cb (GDBusConnection *connection, } static void -start_accounts_service_daemon () +start_accounts_service_daemon (void) { service_count++; g_bus_own_name (G_BUS_TYPE_SYSTEM, @@ -1644,7 +1644,7 @@ start_accounts_service_daemon () } static void -run_lightdm () +run_lightdm (void) { GString *command_line; gchar **lightdm_argv; |