}
static guint32
-int_length ()
+int_length (void)
{
return 4;
}
}
static GDBusProxy *
-get_accounts_service_proxy ()
+get_accounts_service_proxy (void)
{
GError *error = NULL;
}
static guint32
-int_length ()
+int_length (void)
{
return 4;
}
{
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++)
static guint8 *xdmcp_cookie = NULL;
static void
-cleanup ()
+cleanup (void)
{
if (lock_path)
unlink (lock_path);
}
static void
-indicate_ready ()
+indicate_ready (void)
{
void *handler;
handler = signal (SIGUSR1, SIG_IGN);
{
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;
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)
{
static XServer *xserver = NULL;
static void
-indicate_ready ()
+indicate_ready (void)
{
void *handler;
handler = signal (SIGUSR1, SIG_IGN);
}
static void
-cleanup ()
+cleanup (void)
{
if (lock_path)
unlink (lock_path);
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");
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)
{
}
static void
-run_commands ()
+run_commands (void)
{
/* Stop daemon if requested */
while (TRUE)
}
static void
-start_console_kit_daemon ()
+start_console_kit_daemon (void)
{
service_count++;
g_bus_own_name (G_BUS_TYPE_SYSTEM,
}
static void
-load_passwd_file ()
+load_passwd_file (void)
{
gchar *path, *data, **lines;
gchar **user_filter = NULL;
}
static void
-start_accounts_service_daemon ()
+start_accounts_service_daemon (void)
{
service_count++;
g_bus_own_name (G_BUS_TYPE_SYSTEM,
}
static void
-run_lightdm ()
+run_lightdm (void)
{
GString *command_line;
gchar **lightdm_argv;