77static GMainLoop * main_loop = NULL ;
88static PkClientHelper * helper = NULL ;
99
10- static gboolean exit_loop (gpointer user_data )
10+ static gboolean exit_loop (gpointer user_data )
1111{
12- g_debug ("Checking for active connections" );
13- if (!pk_client_helper_is_active (helper )) {
14- g_message ("No active connections, exiting" );
15- g_main_loop_quit (main_loop );
12+ g_debug ("Checking for active connections" );
13+
14+ if (!pk_client_helper_is_active (helper )) {
15+ g_message ("No active connections, exiting" );
16+ g_main_loop_quit (main_loop );
1617 }
1718 return TRUE;
1819}
1920
20- int main (void )
21+ int main (void )
2122{
2223 g_auto (GStrv ) argv = NULL ;
2324 g_auto (GStrv ) envp = NULL ;
@@ -28,10 +29,9 @@ int main(void)
2829 main_loop = g_main_loop_new (NULL , FALSE);
2930 pk_client_create_helper_argv_envp (& argv , & envp );
3031
31-
3232 if (sd_listen_fds (0 ) != 1 ) {
33- g_error ("No or too many file descriptors received." );
34- exit (1 );
33+ g_error ("No or too many file descriptors received." );
34+ exit (1 );
3535 }
3636
3737 fd = SD_LISTEN_FDS_START + 0 ;
@@ -54,5 +54,6 @@ int main(void)
5454
5555 g_object_unref (helper );
5656 g_main_loop_unref (main_loop );
57+
5758 return 0 ;
5859}
0 commit comments