]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Fix compile warnings
authorRobert Ancell <robert.ancell@canonical.com>
Mon, 17 Jun 2013 23:14:43 +0000 (11:14 +1200)
committerRobert Ancell <robert.ancell@canonical.com>
Mon, 17 Jun 2013 23:14:43 +0000 (11:14 +1200)
liblightdm-gobject/greeter.c
src/accounts.c
src/greeter.c
src/xdmcp-server.c
tests/src/X.c
tests/src/Xvnc.c
tests/src/test-runner.c

index 1db708f229b196913710c4f7e41b6a84865352ed..8f90308fe4ceb24710c7e265036f021933ce2834 100644 (file)
@@ -119,7 +119,7 @@ timed_login_cb (gpointer data)
 }
 
 static guint32
-int_length ()
+int_length (void)
 {
     return 4;
 }
index 0fba56407f3789ab28d33c9815e221c7f0a4a613..63d8a40d043e3cecbc0222a6140ad3ed09fa6f8e 100644 (file)
@@ -151,7 +151,7 @@ get_string_from_dmrc (const gchar *username, const gchar *group,
 }
 
 static GDBusProxy *
-get_accounts_service_proxy ()
+get_accounts_service_proxy (void)
 {
     GError *error = NULL;
 
index 9601c0935db7aa4c1b2d8491af5d3f1148114c45..60cf8cb219856c76bc65e237c5da237b36649a51 100644 (file)
@@ -152,7 +152,7 @@ secure_free (Greeter *greeter, void *ptr)
 }
 
 static guint32
-int_length ()
+int_length (void)
 {
     return 4;
 }
index 59a38a65350ecf3055621c1a4c3556e27aa1a5e3..b92df9c97478a1359c5094880e16fcabc510207a 100644 (file)
@@ -237,7 +237,7 @@ decode_key (const gchar *key, guint8 *data)
 {
     gint i;
 
-    memset (data, 0, sizeof (data));
+    memset (data, 0, 8);
     if (strncmp (key, "0x", 2) == 0 || strncmp (key, "0X", 2) == 0)
     {
         for (i = 0; i < 8; i++)
index 86ae768df1c227dd93393406b5c09b008b265a92..dfc41d3648d8e2273518e49e8c56b7d2f2acdd58 100644 (file)
@@ -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)
         {
index 247c5c6eb1110f437ce16c108b02fec30010d550..fd374191b51529d7dc5993b709ddf1b1ef12e060 100644 (file)
@@ -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)
         {
index 1015d1aa6491ed28a34114ef113e6c86c63c565f..1d5815585e075b6b6ec670d4738e7ae6e61fa33c 100644 (file)
@@ -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;